home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / lisp / sh-script.elc < prev    next >
Emacs Compiled Lisp  |  1994-08-02  |  23.0 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v19 byte-compiled Lisp data default
99% file data default
100% TrID Emacs/XEmacs byte-compiled Lisp (generic) default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 13 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6b 77 7a 68 40 68 61 |piled by| kwzh@ha|
|00000020| 6c 2e 67 6e 75 2e 61 69 | 2e 6d 69 74 2e 65 64 75 |l.gnu.ai|.mit.edu|
|00000030| 20 6f 6e 20 54 75 65 20 | 41 75 67 20 20 32 20 32 | on Tue |Aug 2 2|
|00000040| 32 3a 31 38 3a 31 34 20 | 31 39 39 34 0a 3b 3b 3b |2:18:14 |1994.;;;|
|00000050| 20 66 72 6f 6d 20 66 69 | 6c 65 20 2f 67 64 2f 67 | from fi|le /gd/g|
|00000060| 6e 75 2f 65 6d 61 63 73 | 2f 31 39 2e 30 2f 6c 69 |nu/emacs|/19.0/li|
|00000070| 73 70 2f 73 68 2d 73 63 | 72 69 70 74 2e 65 6c 0a |sp/sh-sc|ript.el.|
|00000080| 3b 3b 3b 20 65 6d 61 63 | 73 20 76 65 72 73 69 6f |;;; emac|s versio|
|00000090| 6e 20 31 39 2e 32 35 2e | 39 31 2e 32 2e 0a 3b 3b |n 19.25.|91.2..;;|
|000000a0| 3b 20 62 79 74 65 63 6f | 6d 70 20 76 65 72 73 69 |; byteco|mp versi|
|000000b0| 6f 6e 20 46 53 46 20 32 | 2e 31 30 0a 3b 3b 3b 20 |on FSF 2|.10.;;; |
|000000c0| 6f 70 74 69 6d 69 7a 61 | 74 69 6f 6e 20 69 73 20 |optimiza|tion is |
|000000d0| 6f 6e 2e 0a 3b 3b 3b 20 | 74 68 69 73 20 66 69 6c |on..;;; |this fil|
|000000e0| 65 20 75 73 65 73 20 6f | 70 63 6f 64 65 73 20 77 |e uses o|pcodes w|
|000000f0| 68 69 63 68 20 64 6f 20 | 6e 6f 74 20 65 78 69 73 |hich do |not exis|
|00000100| 74 20 69 6e 20 45 6d 61 | 63 73 20 31 38 2e 0a 0a |t in Ema|cs 18...|
|00000110| 28 69 66 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(if (and| (boundp|
|00000120| 20 27 65 6d 61 63 73 2d | 76 65 72 73 69 6f 6e 29 | 'emacs-|version)|
|00000130| 0a 09 20 28 6f 72 20 28 | 61 6e 64 20 28 62 6f 75 |.. (or (|and (bou|
|00000140| 6e 64 70 20 27 65 70 6f | 63 68 3a 3a 76 65 72 73 |ndp 'epo|ch::vers|
|00000150| 69 6f 6e 29 20 65 70 6f | 63 68 3a 3a 76 65 72 73 |ion) epo|ch::vers|
|00000160| 69 6f 6e 29 0a 09 20 20 | 20 20 20 28 73 74 72 69 |ion).. | (stri|
|00000170| 6e 67 2d 6c 65 73 73 70 | 20 65 6d 61 63 73 2d 76 |ng-lessp| emacs-v|
|00000180| 65 72 73 69 6f 6e 20 22 | 31 39 22 29 29 29 0a 20 |ersion "|19"))). |
|00000190| 20 20 20 28 65 72 72 6f | 72 20 22 60 2f 67 64 2f | (erro|r "`/gd/|
|000001a0| 67 6e 75 2f 65 6d 61 63 | 73 2f 31 39 2e 30 2f 6c |gnu/emac|s/19.0/l|
|000001b0| 69 73 70 2f 73 68 2d 73 | 63 72 69 70 74 2e 65 6c |isp/sh-s|cript.el|
|000001c0| 27 20 77 61 73 20 63 6f | 6d 70 69 6c 65 64 20 66 |' was co|mpiled f|
|000001d0| 6f 72 20 45 6d 61 63 73 | 20 31 39 22 29 29 0a 0a |or Emacs| 19"))..|
|000001e0| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 5c 6e |(byte-co|de "..\n|
|000001f0| 42 42 12 c3 87 22 20 5b | 28 22 2f 62 69 6e 2f 22 |BB..." [|("/bin/"|
|00000200| 20 2e 20 73 68 2d 6f 72 | 2d 6f 74 68 65 72 2d 6d | . sh-or|-other-m|
|00000210| 6f 64 65 29 20 28 22 5c | 5c 2e 73 68 24 5c 5c 7c |ode) ("\|\.sh$\\||
|00000220| 5c 5c 2e 73 68 61 72 24 | 5c 5c 7c 2f 5c 5c 2e 5c |\\.shar$|\\|/\\.\|
|00000230| 5c 28 70 72 6f 66 69 6c | 65 5c 5c 7c 62 61 73 68 |\(profil|e\\|bash|
|00000240| 5f 70 72 6f 66 69 6c 65 | 5c 5c 7c 6c 6f 67 69 6e |_profile|\\|login|
|00000250| 5c 5c 7c 62 61 73 68 5f | 6c 6f 67 69 6e 5c 5c 7c |\\|bash_|login\\||
|00000260| 6c 6f 67 6f 75 74 5c 5c | 7c 62 61 73 68 5f 6c 6f |logout\\||bash_lo|
|00000270| 67 6f 75 74 5c 5c 7c 62 | 61 73 68 72 63 5c 5c 7c |gout\\|b|ashrc\\||
|00000280| 74 3f 63 73 68 72 63 5c | 5c 7c 78 69 6e 69 74 72 |t?cshrc\|\|xinitr|
|00000290| 63 5c 5c 7c 73 74 61 72 | 74 78 72 63 5c 5c 7c 78 |c\\|star|txrc\\|x|
|000002a0| 73 65 73 73 69 6f 6e 5c | 5c 29 24 22 20 2e 20 73 |session\|\)$" . s|
|000002b0| 68 2d 6d 6f 64 65 29 20 | 61 75 74 6f 2d 6d 6f 64 |h-mode) |auto-mod|
|000002c0| 65 2d 61 6c 69 73 74 20 | 6e 69 6c 5d 20 33 29 0a |e-alist |nil] 3).|
|000002d0| 28 64 65 66 76 61 72 20 | 73 68 2d 6d 6f 64 65 2d |(defvar |sh-mode-|
|000002e0| 73 79 6e 74 61 78 2d 74 | 61 62 6c 65 20 28 62 79 |syntax-t|able (by|
|000002f0| 74 65 2d 63 6f 64 65 20 | 22 c0 20 19 c2 c3 c4 09 |te-code |". .....|
|00000300| 23 88 c2 c5 c6 09 23 88 | c2 c7 c6 09 23 88 c2 c8 |#.....#.|....#...|
|00000310| c9 09 23 88 c2 ca cb 09 | 23 88 c2 cc cd 09 23 88 |..#.....|#.....#.|
|00000320| c2 ce cf 09 23 88 c2 d0 | cf 09 23 88 c2 d1 cf 09 |....#...|..#.....|
|00000330| 23 88 c2 d2 cf 09 23 88 | c2 d3 cf 09 23 88 c2 d4 |#.....#.|....#...|
|00000340| cf 09 23 88 c2 d5 cf 09 | 23 88 09 29 87 22 20 5b |..#.....|#..)." [|
|00000350| 63 6f 70 79 2d 73 79 6e | 74 61 78 2d 74 61 62 6c |copy-syn|tax-tabl|
|00000360| 65 20 74 61 62 6c 65 20 | 6d 6f 64 69 66 79 2d 73 |e table |modify-s|
|00000370| 79 6e 74 61 78 2d 65 6e | 74 72 79 20 33 35 20 22 |yntax-en|try 35 "|
|00000380| 3c 22 20 31 32 20 22 3e | 23 22 20 31 30 20 33 34 |<" 12 ">|#" 10 34|
|00000390| 20 22 5c 22 5c 22 22 20 | 33 39 20 22 5c 22 27 22 | "\"\"" |39 "\"'"|
|000003a0| 20 39 36 20 22 24 60 22 | 20 33 36 20 22 5f 22 20 | 96 "$`"| 36 "_" |
|000003b0| 33 33 20 33 37 20 35 38 | 20 34 36 20 39 34 20 31 |33 37 58| 46 94 1|
|000003c0| 32 36 5d 20 34 29 20 22 | 5c 0a 53 79 6e 74 61 78 |26] 4) "|\.Syntax|
|000003d0| 20 74 61 62 6c 65 20 69 | 6e 20 75 73 65 20 69 6e | table i|n use in|
|000003e0| 20 53 68 65 6c 6c 2d 53 | 63 72 69 70 74 20 6d 6f | Shell-S|cript mo|
|000003f0| 64 65 2e 22 29 0a 28 64 | 65 66 76 61 72 20 73 68 |de.").(d|efvar sh|
|00000400| 2d 75 73 65 2d 70 72 65 | 66 69 78 20 6e 69 6c 20 |-use-pre|fix nil |
|00000410| 22 5c 0a 49 66 20 6e 6f | 6e 2d 6e 69 6c 20 77 68 |"\.If no|n-nil wh|
|00000420| 65 6e 20 6c 6f 61 64 69 | 6e 67 2c 20 60 24 27 20 |en loadi|ng, `$' |
|00000430| 61 6e 64 20 60 3c 27 20 | 77 69 6c 6c 20 62 65 20 |and `<' |will be |
|00000440| 20 43 2d 63 20 24 20 20 | 61 6e 64 20 20 43 2d 63 | C-c $ |and C-c|
|00000450| 20 3c 20 2e 22 29 0a 28 | 64 65 66 76 61 72 20 73 | < .").(|defvar s|
|00000460| 68 2d 6d 6f 64 65 2d 6d | 61 70 20 28 62 79 74 65 |h-mode-m|ap (byte|
|00000470| 2d 63 6f 64 65 20 22 c0 | 20 19 c2 09 c3 c4 23 88 |-code ".| .....#.|
|00000480| c2 09 c5 c6 23 88 c2 09 | c7 c8 23 88 c2 09 c9 ca |....#...|..#.....|
|00000490| 23 88 c2 09 cb cc 23 88 | c2 09 cd ce 23 88 c2 09 |#.....#.|....#...|
|000004a0| cf d0 23 88 c2 09 d1 d2 | 23 88 c2 09 0e 13 83 3e |..#.....|#......>|
|000004b0| 00 d4 82 3f 00 d5 d6 23 | 88 c2 09 d7 d8 23 88 c2 |...?...#|.....#..|
|000004c0| 09 d9 da 23 88 c2 09 0e | 13 83 59 00 db 82 5a 00 |...#....|..Y...Z.|
|000004d0| dc dd 23 88 c2 09 de df | 23 88 c2 09 e0 df 23 88 |..#.....|#.....#.|
|000004e0| c2 09 e1 df 23 88 c2 09 | e2 df 23 88 c2 09 e3 df |....#...|..#.....|
|000004f0| 23 88 c2 09 e4 df 23 88 | c2 09 e5 e6 23 88 e7 e8 |#.....#.|....#...|
|00000500| e9 09 ea 20 24 88 e7 eb | ec 09 ea 20 24 88 e7 ed |... $...|... $...|
|00000510| ee 09 ea 20 24 88 c2 09 | ef f0 23 88 e7 f1 f2 09 |... $...|..#.....|
|00000520| ea 20 24 88 e7 f3 f4 09 | ea 20 24 88 e7 f5 f6 09 |. $.....|. $.....|
|00000530| ea 20 24 88 e7 f7 f8 09 | ea 20 24 88 c2 09 f9 fa |. $.....|. $.....|
|00000540| c0 fa 21 42 23 88 c2 09 | fb fc 23 88 c2 09 fd fe |..!B#...|..#.....|
|00000550| 23 88 c2 09 ff 81 40 00 | 23 88 c2 09 81 41 00 81 |#.....@.|#....A..|
|00000560| 42 00 23 88 c2 09 81 43 | 00 81 44 00 23 88 c2 09 |B.#....C|..D.#...|
|00000570| 81 45 00 81 46 00 23 88 | c2 09 81 47 00 81 48 00 |.E..F.#.|...G..H.|
|00000580| 23 88 09 29 87 22 20 5b | 6d 61 6b 65 2d 73 70 61 |#..)." [|make-spa|
|00000590| 72 73 65 2d 6b 65 79 6d | 61 70 20 6d 61 70 20 64 |rse-keym|ap map d|
|000005a0| 65 66 69 6e 65 2d 6b 65 | 79 20 22 03 28 22 20 73 |efine-ke|y ".(" s|
|000005b0| 68 2d 66 75 6e 63 74 69 | 6f 6e 20 22 03 17 22 20 |h-functi|on ".." |
|000005c0| 73 68 2d 77 68 69 6c 65 | 20 22 03 15 22 20 73 68 |sh-while| ".." sh|
|000005d0| 2d 75 6e 74 69 6c 20 22 | 03 13 22 20 73 68 2d 73 |-until "|.." sh-s|
|000005e0| 65 6c 65 63 74 20 22 03 | 5c 66 22 20 73 68 2d 69 |elect ".|\f" sh-i|
|000005f0| 6e 64 65 78 65 64 2d 6c | 6f 6f 70 20 22 03 09 22 |ndexed-l|oop ".."|
|00000600| 20 73 68 2d 69 66 20 22 | 03 06 22 20 73 68 2d 66 | sh-if "|.." sh-f|
|00000610| 6f 72 20 22 03 03 22 20 | 73 68 2d 63 61 73 65 20 |or ".." |sh-case |
|00000620| 73 68 2d 75 73 65 2d 70 | 72 65 66 69 78 20 22 03 |sh-use-p|refix ".|
|00000630| 24 22 20 22 24 22 20 73 | 68 2d 71 75 65 72 79 2d |$" "$" s|h-query-|
|00000640| 66 6f 72 2d 76 61 72 69 | 61 62 6c 65 20 22 3d 22 |for-vari|able "="|
|00000650| 20 73 68 2d 61 73 73 69 | 67 6e 6d 65 6e 74 20 22 | sh-assi|gnment "|
|00000660| 03 2b 22 20 73 68 2d 61 | 64 64 20 22 03 3c 22 20 |.+" sh-a|dd ".<" |
|00000670| 22 3c 22 20 73 68 2d 6d | 61 79 62 65 2d 68 65 72 |"<" sh-m|aybe-her|
|00000680| 65 2d 64 6f 63 75 6d 65 | 6e 74 20 22 28 22 20 70 |e-docume|nt "(" p|
|00000690| 61 69 72 2d 69 6e 73 65 | 72 74 2d 6d 61 79 62 65 |air-inse|rt-maybe|
|000006a0| 20 22 7b 22 20 22 5b 22 | 20 22 27 22 20 22 60 22 | "{" "["| "'" "`"|
|000006b0| 20 22 5c 22 22 20 22 09 | 22 20 73 68 2d 69 6e 64 | "\"" ".|" sh-ind|
|000006c0| 65 6e 74 2d 6c 69 6e 65 | 20 73 75 62 73 74 69 74 |ent-line| substit|
|000006d0| 75 74 65 2d 6b 65 79 2d | 64 65 66 69 6e 69 74 69 |ute-key-|definiti|
|000006e0| 6f 6e 20 63 6f 6d 70 6c | 65 74 65 2d 74 61 67 20 |on compl|ete-tag |
|000006f0| 63 6f 6d 69 6e 74 2d 64 | 79 6e 61 6d 69 63 2d 63 |comint-d|ynamic-c|
|00000700| 6f 6d 70 6c 65 74 65 2d | 66 69 6c 65 6e 61 6d 65 |omplete-|filename|
|00000710| 20 63 75 72 72 65 6e 74 | 2d 67 6c 6f 62 61 6c 2d | current|-global-|
|00000720| 6d 61 70 20 6e 65 77 6c | 69 6e 65 2d 61 6e 64 2d |map newl|ine-and-|
|00000730| 69 6e 64 65 6e 74 20 73 | 68 2d 6e 65 77 6c 69 6e |indent s|h-newlin|
|00000740| 65 2d 61 6e 64 2d 69 6e | 64 65 6e 74 20 64 65 6c |e-and-in|dent del|
|00000750| 65 74 65 2d 62 61 63 6b | 77 61 72 64 2d 63 68 61 |ete-back|ward-cha|
|00000760| 72 20 62 61 63 6b 77 61 | 72 64 2d 64 65 6c 65 74 |r backwa|rd-delet|
|00000770| 65 2d 63 68 61 72 2d 75 | 6e 74 61 62 69 66 79 20 |e-char-u|ntabify |
|00000780| 22 03 3a 22 20 73 68 2d | 73 65 74 2d 73 68 65 6c |".:" sh-|set-shel|
|00000790| 6c 20 62 65 67 69 6e 6e | 69 6e 67 2d 6f 66 2d 64 |l beginn|ing-of-d|
|000007a0| 65 66 75 6e 20 73 68 2d | 62 65 67 69 6e 6e 69 6e |efun sh-|beginnin|
|000007b0| 67 2d 6f 66 2d 63 6f 6d | 70 6f 75 6e 64 2d 63 6f |g-of-com|pound-co|
|000007c0| 6d 6d 61 6e 64 20 62 61 | 63 6b 77 61 72 64 2d 73 |mmand ba|ckward-s|
|000007d0| 65 6e 74 65 6e 63 65 20 | 73 68 2d 62 65 67 69 6e |entence |sh-begin|
|000007e0| 6e 69 6e 67 2d 6f 66 2d | 63 6f 6d 6d 61 6e 64 20 |ning-of-|command |
|000007f0| 66 6f 72 77 61 72 64 2d | 73 65 6e 74 65 6e 63 65 |forward-|sentence|
|00000800| 20 73 68 2d 65 6e 64 2d | 6f 66 2d 63 6f 6d 6d 61 | sh-end-|of-comma|
|00000810| 6e 64 20 6d 61 6e 75 61 | 6c 2d 65 6e 74 72 79 20 |nd manua|l-entry |
|00000820| 73 68 2d 6d 61 6e 75 61 | 6c 2d 65 6e 74 72 79 20 |sh-manua|l-entry |
|00000830| 5b 6d 65 6e 75 2d 62 61 | 72 20 69 6e 73 65 72 74 |[menu-ba|r insert|
|00000840| 5d 20 22 49 6e 73 65 72 | 74 22 20 5b 6d 65 6e 75 |] "Inser|t" [menu|
|00000850| 2d 62 61 72 20 69 6e 73 | 65 72 74 20 73 68 2d 77 |-bar ins|ert sh-w|
|00000860| 68 69 6c 65 5d 20 28 22 | 57 68 69 6c 65 20 6c 6f |hile] ("|While lo|
|00000870| 6f 70 22 20 2e 20 73 68 | 2d 77 68 69 6c 65 29 20 |op" . sh|-while) |
|00000880| 5b 6d 65 6e 75 2d 62 61 | 72 20 69 6e 73 65 72 74 |[menu-ba|r insert|
|00000890| 20 73 68 2d 75 6e 74 69 | 6c 5d 20 28 22 55 6e 74 | sh-unti|l] ("Unt|
|000008a0| 69 6c 20 6c 6f 6f 70 22 | 20 2e 20 73 68 2d 75 6e |il loop"| . sh-un|
|000008b0| 74 69 6c 29 20 5b 6d 65 | 6e 75 2d 62 61 72 20 69 |til) [me|nu-bar i|
|000008c0| 6e 73 65 72 74 20 73 68 | 2d 73 65 6c 65 63 74 5d |nsert sh|-select]|
|000008d0| 20 28 22 53 65 6c 65 63 | 74 20 73 74 61 74 65 6d | ("Selec|t statem|
|000008e0| 65 6e 74 22 20 2e 20 73 | 68 2d 73 65 6c 65 63 74 |ent" . s|h-select|
|000008f0| 29 20 5b 6d 65 6e 75 2d | 62 61 72 20 69 6e 73 65 |) [menu-|bar inse|
|00000900| 72 74 20 73 68 2d 69 6e | 64 65 78 65 64 2d 6c 6f |rt sh-in|dexed-lo|
|00000910| 6f 70 5d 20 28 22 49 6e | 64 65 78 65 64 20 6c 6f |op] ("In|dexed lo|
|00000920| 6f 70 22 20 2e 20 73 68 | 2d 69 6e 64 65 78 65 64 |op" . sh|-indexed|
|00000930| 2d 6c 6f 6f 70 29 20 5b | 6d 65 6e 75 2d 62 61 72 |-loop) [|menu-bar|
|00000940| 20 69 6e 73 65 72 74 20 | 73 68 2d 69 66 5d 20 28 | insert |sh-if] (|
|00000950| 22 49 66 20 73 74 61 74 | 65 6d 65 6e 74 22 20 2e |"If stat|ement" .|
|00000960| 20 73 68 2d 69 66 29 20 | 5b 6d 65 6e 75 2d 62 61 | sh-if) |[menu-ba|
|00000970| 72 20 69 6e 73 65 72 74 | 20 73 68 2d 66 6f 72 5d |r insert| sh-for]|
|00000980| 20 28 22 46 6f 72 20 6c | 6f 6f 70 22 20 2e 20 73 | ("For l|oop" . s|
|00000990| 68 2d 66 6f 72 29 20 5b | 6d 65 6e 75 2d 62 61 72 |h-for) [|menu-bar|
|000009a0| 20 69 6e 73 65 72 74 20 | 73 68 2d 63 61 73 65 5d | insert |sh-case]|
|000009b0| 20 28 22 43 61 73 65 20 | 73 74 61 74 65 6d 65 6e | ("Case |statemen|
|000009c0| 74 22 20 2e 20 73 68 2d | 63 61 73 65 29 5d 20 36 |t" . sh-|case)] 6|
|000009d0| 29 20 22 5c 0a 4b 65 79 | 6d 61 70 20 75 73 65 64 |) "\.Key|map used|
|000009e0| 20 69 6e 20 53 68 65 6c | 6c 2d 53 63 72 69 70 74 | in Shel|l-Script|
|000009f0| 20 6d 6f 64 65 2e 22 29 | 0a 28 64 65 66 76 61 72 | mode.")|.(defvar|
|00000a00| 20 73 68 2d 66 69 6e 64 | 2d 66 69 6c 65 2d 6d 6f | sh-find|-file-mo|
|00000a10| 64 69 66 69 65 73 20 74 | 20 22 5c 0a 2a 57 68 61 |difies t| "\.*Wha|
|00000a20| 74 20 74 6f 20 64 6f 20 | 77 68 65 6e 20 6e 65 77 |t to do |when new|
|00000a30| 6c 79 20 66 6f 75 6e 64 | 20 66 69 6c 65 20 68 61 |ly found| file ha|
|00000a40| 73 20 6e 6f 20 6d 61 67 | 69 63 20 6e 75 6d 62 65 |s no mag|ic numbe|
|00000a50| 72 3a 0a 09 6e 69 6c 09 | 64 6f 20 6e 6f 74 68 69 |r:..nil.|do nothi|
|00000a60| 6e 67 0a 09 74 09 69 6e | 73 65 72 74 20 6d 61 67 |ng..t.in|sert mag|
|00000a70| 69 63 20 6e 75 6d 62 65 | 72 0a 09 6f 74 68 65 72 |ic numbe|r..other|
|00000a80| 09 69 6e 73 65 72 74 20 | 6d 61 67 69 63 20 6e 75 |.insert |magic nu|
|00000a90| 6d 62 65 72 2c 20 62 75 | 74 20 6d 61 72 6b 20 61 |mber, bu|t mark a|
|00000aa0| 73 20 75 6e 6d 6f 64 69 | 66 69 65 64 2e 22 29 0a |s unmodi|fied.").|
|00000ab0| 28 64 65 66 76 61 72 20 | 73 68 2d 71 75 65 72 79 |(defvar |sh-query|
|00000ac0| 2d 66 6f 72 2d 6d 61 67 | 69 63 20 74 20 22 5c 0a |-for-mag|ic t "\.|
|00000ad0| 2a 49 66 20 6e 6f 6e 2d | 6e 69 6c 2c 20 61 73 6b |*If non-|nil, ask|
|00000ae0| 20 75 73 65 72 20 62 65 | 66 6f 72 65 20 63 68 61 | user be|fore cha|
|00000af0| 6e 67 69 6e 67 20 6f 72 | 20 69 6e 73 65 72 74 69 |nging or| inserti|
|00000b00| 6e 67 20 6d 61 67 69 63 | 20 6e 75 6d 62 65 72 2e |ng magic| number.|
|00000b10| 22 29 0a 28 64 65 66 76 | 61 72 20 73 68 2d 6d 61 |").(defv|ar sh-ma|
|00000b20| 67 69 63 6c 65 73 73 2d | 66 69 6c 65 2d 72 65 67 |gicless-|file-reg|
|00000b30| 65 78 70 20 22 2f 5c 5c | 2e 5b 5e 2f 5d 2b 24 22 |exp "/\\|.[^/]+$"|
|00000b40| 20 22 5c 0a 2a 4f 6e 20 | 66 69 6c 65 73 20 77 69 | "\.*On |files wi|
|00000b50| 74 68 20 74 68 69 73 20 | 6b 69 6e 64 20 6f 66 20 |th this |kind of |
|00000b60| 6e 61 6d 65 20 6e 6f 20 | 6d 61 67 69 63 20 69 73 |name no |magic is|
|00000b70| 20 69 6e 73 65 72 74 65 | 64 20 6f 72 20 63 68 61 | inserte|d or cha|
|00000b80| 6e 67 65 64 2e 22 29 0a | 28 64 65 66 76 61 72 20 |nged.").|(defvar |
|00000b90| 6d 61 67 69 63 2d 6e 75 | 6d 62 65 72 2d 61 6c 69 |magic-nu|mber-ali|
|00000ba0| 73 74 20 28 71 75 6f 74 | 65 20 28 28 22 4c 01 08 |st (quot|e (("L..|
|00000bb0| 5c 5c 7c 7f 45 4c 46 22 | 20 2e 20 68 65 78 6c 2d |\\|.ELF"| . hexl-|
|00000bc0| 6d 6f 64 65 29 20 28 22 | 23 21 2e 2a 70 65 72 6c |mode) ("|#!.*perl|
|00000bd0| 22 20 2e 20 70 65 72 6c | 2d 6d 6f 64 65 29 29 29 |" . perl|-mode)))|
|00000be0| 20 22 5c 0a 41 20 72 65 | 67 65 78 70 20 74 6f 20 | "\.A re|gexp to |
|00000bf0| 6d 61 74 63 68 20 74 68 | 65 20 6d 61 67 69 63 20 |match th|e magic |
|00000c00| 6e 75 6d 62 65 72 20 6f | 66 20 61 20 66 6f 75 6e |number o|f a foun|
|00000c10| 64 20 66 69 6c 65 2e 0a | 43 75 72 72 65 6e 74 6c |d file..|Currentl|
|00000c20| 79 20 74 68 69 73 20 69 | 73 20 6f 6e 6c 79 20 75 |y this i|s only u|
|00000c30| 73 65 64 20 62 79 20 66 | 75 6e 63 74 69 6f 6e 20 |sed by f|unction |
|00000c40| 60 73 68 2d 6f 72 2d 6f | 74 68 65 72 2d 6d 6f 64 |`sh-or-o|ther-mod|
|00000c50| 65 27 2e 22 29 0a 28 64 | 65 66 76 61 72 20 73 68 |e'.").(d|efvar sh|
|00000c60| 2d 65 78 65 63 75 74 61 | 62 6c 65 20 22 2e 2a 20 |-executa|ble ".* |
|00000c70| 69 73 20 5c 5c 28 5b 5e | 20 09 5d 2a 5c 5c 29 5c |is \\([^| .]*\\)\|
|00000c80| 6e 22 20 22 5c 0a 2a 52 | 65 67 65 78 70 20 74 6f |n" "\.*R|egexp to|
|00000c90| 20 6d 61 74 63 68 20 74 | 68 65 20 6f 75 74 70 75 | match t|he outpu|
|00000ca0| 74 20 6f 66 20 73 68 20 | 62 75 69 6c 74 69 6e 20 |t of sh |builtin |
|00000cb0| 60 74 79 70 65 27 20 63 | 6f 6d 6d 61 6e 64 20 6f |`type' c|ommand o|
|00000cc0| 6e 20 79 6f 75 72 20 6d | 61 63 68 69 6e 65 2e 0a |n your m|achine..|
|00000cd0| 54 68 65 20 72 65 67 65 | 78 70 20 6d 75 73 74 20 |The rege|xp must |
|00000ce0| 6d 61 74 63 68 20 74 68 | 65 20 77 68 6f 6c 65 20 |match th|e whole |
|00000cf0| 6f 75 74 70 75 74 2c 20 | 61 6e 64 20 6d 75 73 74 |output, |and must|
|00000d00| 20 63 6f 6e 74 61 69 6e | 20 61 20 5c 5c 28 73 6f | contain| a \\(so|
|00000d10| 6d 65 74 68 69 6e 67 5c | 5c 29 0a 63 6f 6e 73 74 |mething\|\).const|
|00000d20| 72 75 63 74 20 77 68 69 | 63 68 20 6d 61 74 63 68 |ruct whi|ch match|
|00000d30| 65 73 20 74 68 65 20 61 | 63 74 75 61 6c 20 65 78 |es the a|ctual ex|
|00000d40| 65 63 75 74 61 62 6c 65 | 2e 22 29 0a 28 64 65 66 |ecutable|.").(def|
|00000d50| 76 61 72 20 73 68 2d 63 | 68 6d 6f 64 2d 61 72 67 |var sh-c|hmod-arg|
|00000d60| 75 6d 65 6e 74 20 22 2b | 78 22 20 22 5c 0a 2a 41 |ument "+|x" "\.*A|
|00000d70| 66 74 65 72 20 73 61 76 | 69 6e 67 2c 20 69 66 20 |fter sav|ing, if |
|00000d80| 74 68 65 20 66 69 6c 65 | 20 69 73 20 6e 6f 74 20 |the file| is not |
|00000d90| 65 78 65 63 75 74 61 62 | 6c 65 2c 20 73 65 74 20 |executab|le, set |
|00000da0| 74 68 69 73 20 6d 6f 64 | 65 2e 0a 54 68 65 20 6d |this mod|e..The m|
|00000db0| 6f 64 65 20 63 61 6e 20 | 62 65 20 61 62 73 6f 6c |ode can |be absol|
|00000dc0| 75 74 65 2c 20 73 75 63 | 68 20 61 73 20 5c 22 37 |ute, suc|h as \"7|
|00000dd0| 37 37 5c 22 2c 20 6f 72 | 20 72 65 6c 61 74 69 76 |77\", or| relativ|
|00000de0| 65 2c 20 73 75 63 68 20 | 61 73 20 5c 22 2b 78 5c |e, such |as \"+x\|
|00000df0| 22 2e 0a 44 6f 20 6e 6f | 74 68 69 6e 67 20 69 66 |"..Do no|thing if|
|00000e00| 20 74 68 69 73 20 69 73 | 20 6e 69 6c 2e 22 29 0a | this is| nil.").|
|00000e10| 28 64 65 66 76 61 72 20 | 73 68 2d 73 68 65 6c 6c |(defvar |sh-shell|
|00000e20| 2d 70 61 74 68 20 28 62 | 79 74 65 2d 63 6f 64 65 |-path (b|yte-code|
|00000e30| 20 22 c0 c1 21 86 07 00 | c2 87 22 20 5b 67 65 74 | "..!...|.." [get|
|00000e40| 65 6e 76 20 22 53 48 45 | 4c 4c 22 20 22 2f 62 69 |env "SHE|LL" "/bi|
|00000e50| 6e 2f 73 68 22 5d 20 32 | 29 20 22 5c 0a 2a 54 68 |n/sh"] 2|) "\.*Th|
|00000e60| 65 20 65 78 65 63 75 74 | 61 62 6c 65 20 6f 66 20 |e execut|able of |
|00000e70| 74 68 65 20 73 68 65 6c | 6c 20 62 65 69 6e 67 20 |the shel|l being |
|00000e80| 70 72 6f 67 72 61 6d 6d | 65 64 2e 22 29 0a 28 64 |programm|ed.").(d|
|00000e90| 65 66 76 61 72 20 73 68 | 2d 73 68 65 6c 6c 2d 61 |efvar sh|-shell-a|
|00000ea0| 72 67 75 6d 65 6e 74 20 | 6e 69 6c 20 22 5c 0a 2a |rgument |nil "\.*|
|00000eb0| 41 20 73 69 6e 67 6c 65 | 20 61 72 67 75 6d 65 6e |A single| argumen|
|00000ec0| 74 20 66 6f 72 20 74 68 | 65 20 6d 61 67 69 63 20 |t for th|e magic |
|00000ed0| 6e 75 6d 62 65 72 2c 20 | 6f 72 20 6e 69 6c 2e 22 |number, |or nil."|
|00000ee0| 29 0a 28 64 65 66 76 61 | 72 20 73 68 2d 73 68 65 |).(defva|r sh-she|
|00000ef0| 6c 6c 20 6e 69 6c 20 22 | 5c 0a 54 68 65 20 73 68 |ll nil "|\.The sh|
|00000f00| 65 6c 6c 20 62 65 69 6e | 67 20 70 72 6f 67 72 61 |ell bein|g progra|
|00000f10| 6d 6d 65 64 2e 20 20 54 | 68 69 73 20 69 73 20 73 |mmed. T|his is s|
|00000f20| 65 74 20 62 79 20 5c 5c | 5b 73 68 2d 73 65 74 2d |et by \\|[sh-set-|
|00000f30| 73 68 65 6c 6c 5d 2e 22 | 29 0a 28 64 65 66 76 61 |shell]."|).(defva|
|00000f40| 72 20 73 68 2d 73 68 65 | 6c 6c 2d 69 73 2d 63 73 |r sh-she|ll-is-cs|
|00000f50| 68 20 6e 69 6c 20 22 5c | 0a 54 68 65 20 73 68 65 |h nil "\|.The she|
|00000f60| 6c 6c 20 62 65 69 6e 67 | 20 70 72 6f 67 72 61 6d |ll being| program|
|00000f70| 6d 65 64 2e 20 20 54 68 | 69 73 20 69 73 20 73 65 |med. Th|is is se|
|00000f80| 74 20 62 79 20 5c 5c 5b | 73 68 2d 73 65 74 2d 73 |t by \\[|sh-set-s|
|00000f90| 68 65 6c 6c 5d 2e 22 29 | 0a 28 64 65 66 76 61 72 |hell].")|.(defvar|
|00000fa0| 20 73 68 2d 74 61 62 2d | 77 69 64 74 68 20 34 20 | sh-tab-|width 4 |
|00000fb0| 22 5c 0a 54 68 65 20 64 | 65 66 61 75 6c 74 20 76 |"\.The d|efault v|
|00000fc0| 61 6c 75 65 20 66 6f 72 | 20 60 74 61 62 2d 77 69 |alue for| `tab-wi|
|00000fd0| 64 74 68 27 20 69 6e 20 | 53 68 65 6c 6c 2d 53 63 |dth' in |Shell-Sc|
|00000fe0| 72 69 70 74 20 6d 6f 64 | 65 2e 0a 54 68 69 73 20 |ript mod|e..This |
|00000ff0| 69 73 20 74 68 65 20 77 | 69 64 74 68 20 6f 66 20 |is the w|idth of |
|00001000| 74 61 62 20 73 74 6f 70 | 73 20 61 66 74 65 72 20 |tab stop|s after |
|00001010| 74 68 65 20 69 6e 64 65 | 6e 74 61 74 69 6f 6e 20 |the inde|ntation |
|00001020| 6f 66 20 74 68 65 20 70 | 72 65 63 65 65 64 69 6e |of the p|receedin|
|00001030| 67 20 6c 69 6e 65 2e 22 | 29 0a 28 64 65 66 76 61 |g line."|).(defva|
|00001040| 72 20 73 68 2d 72 65 6d | 65 6d 62 65 72 2d 76 61 |r sh-rem|ember-va|
|00001050| 72 69 61 62 6c 65 2d 6d | 69 6e 20 33 20 22 5c 0a |riable-m|in 3 "\.|
|00001060| 2a 44 6f 6e 27 74 20 72 | 65 6d 65 6d 62 65 72 20 |*Don't r|emember |
|00001070| 76 61 72 69 61 62 6c 65 | 73 20 6c 65 73 73 20 74 |variable|s less t|
|00001080| 68 61 6e 20 74 68 69 73 | 20 6c 65 6e 67 74 68 20 |han this| length |
|00001090| 66 6f 72 20 63 6f 6d 70 | 6c 65 74 69 6e 67 20 72 |for comp|leting r|
|000010a0| 65 61 64 73 2e 22 29 0a | 28 64 65 66 76 61 72 20 |eads.").|(defvar |
|000010b0| 73 68 2d 62 65 67 69 6e | 6e 69 6e 67 2d 6f 66 2d |sh-begin|ning-of-|
|000010c0| 63 6f 6d 6d 61 6e 64 20 | 22 5c 5c 28 5b 3b 28 7b |command |"\\([;({|
|000010d0| 60 7c 26 5d 5c 5c 7c 5e | 5c 5c 29 5b 20 09 5d 2a |`|&]\\|^|\\)[ .]*|
|000010e0| 5c 5c 28 5b 2f 7e 3a 61 | 2d 7a 41 2d 5a 30 2d 39 |\\([/~:a|-zA-Z0-9|
|000010f0| 5d 5c 5c 29 22 20 22 5c | 0a 2a 52 65 67 65 78 70 |]\\)" "\|.*Regexp|
|00001100| 20 74 6f 20 64 65 74 65 | 72 6d 69 6e 65 20 74 68 | to dete|rmine th|
|00001110| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 61 |e beginn|ing of a|
|00001120| 20 73 68 65 6c 6c 20 63 | 6f 6d 6d 61 6e 64 2e 0a | shell c|ommand..|
|00001130| 54 68 65 20 61 63 74 75 | 61 6c 20 63 6f 6d 6d 61 |The actu|al comma|
|00001140| 6e 64 20 73 74 61 72 74 | 73 20 61 74 20 74 68 65 |nd start|s at the|
|00001150| 20 62 65 67 69 6e 6e 69 | 6e 67 20 6f 66 20 74 68 | beginni|ng of th|
|00001160| 65 20 73 65 63 6f 6e 64 | 20 5c 5c 28 67 72 6f 75 |e second| \\(grou|
|00001170| 70 69 6e 67 5c 5c 29 2e | 22 29 0a 28 64 65 66 76 |ping\\).|").(defv|
|00001180| 61 72 20 73 68 2d 65 6e | 64 2d 6f 66 2d 63 6f 6d |ar sh-en|d-of-com|
|00001190| 6d 61 6e 64 20 22 5c 5c | 28 5b 2f 7e 3a 61 2d 7a |mand "\\|([/~:a-z|
|000011a0| 41 2d 5a 30 2d 39 5d 5c | 5c 29 5b 20 09 5d 2a 5c |A-Z0-9]\|\)[ .]*\|
|000011b0| 5c 28 5b 3b 23 29 7d 60 | 7c 26 5d 5c 5c 7c 24 5c |\([;#)}`||&]\\|$\|
|000011c0| 5c 29 22 20 22 5c 0a 2a | 52 65 67 65 78 70 20 74 |\)" "\.*|Regexp t|
|000011d0| 6f 20 64 65 74 65 72 6d | 69 6e 65 20 74 68 65 20 |o determ|ine the |
|000011e0| 65 6e 64 20 6f 66 20 61 | 20 73 68 65 6c 6c 20 63 |end of a| shell c|
|000011f0| 6f 6d 6d 61 6e 64 2e 0a | 54 68 65 20 61 63 74 75 |ommand..|The actu|
|00001200| 61 6c 20 63 6f 6d 6d 61 | 6e 64 20 65 6e 64 73 20 |al comma|nd ends |
|00001210| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |at the e|nd of th|
|00001220| 65 20 66 69 72 73 74 20 | 5c 5c 28 67 72 6f 75 70 |e first |\\(group|
|00001230| 69 6e 67 5c 5c 29 2e 22 | 29 0a 28 64 65 66 76 61 |ing\\)."|).(defva|
|00001240| 72 20 73 68 2d 61 73 73 | 69 67 6e 6d 65 6e 74 2d |r sh-ass|ignment-|
|00001250| 73 70 61 63 65 20 28 71 | 75 6f 74 65 20 28 63 73 |space (q|uote (cs|
|00001260| 68 20 74 63 73 68 29 29 | 20 22 5c 0a 4c 69 73 74 |h tcsh))| "\.List|
|00001270| 20 6f 66 20 73 68 65 6c | 6c 73 20 74 68 61 74 20 | of shel|ls that |
|00001280| 61 6c 6c 6f 77 20 73 70 | 61 63 65 73 20 61 72 6f |allow sp|aces aro|
|00001290| 75 6e 64 20 74 68 65 20 | 61 73 73 69 67 6e 6d 65 |und the |assignme|
|000012a0| 6e 74 20 3d 2e 22 29 0a | 28 64 65 66 76 61 72 20 |nt =.").|(defvar |
|000012b0| 73 68 2d 68 65 72 65 2d | 64 6f 63 75 6d 65 6e 74 |sh-here-|document|
|000012c0| 2d 77 6f 72 64 20 22 2b | 22 20 22 5c 0a 57 6f 72 |-word "+|" "\.Wor|
|000012d0| 64 20 74 6f 20 64 65 6c | 69 6d 69 74 20 68 65 72 |d to del|imit her|
|000012e0| 65 20 64 6f 63 75 6d 65 | 6e 74 73 2e 22 29 0a 28 |e docume|nts.").(|
|000012f0| 64 65 66 76 61 72 20 73 | 68 2d 76 61 72 69 61 62 |defvar s|h-variab|
|00001300| 6c 65 73 20 28 71 75 6f | 74 65 20 28 28 22 61 64 |les (quo|te (("ad|
|00001310| 64 73 75 66 66 69 78 22 | 20 74 63 73 68 29 20 28 |dsuffix"| tcsh) (|
|00001320| 22 61 6c 6c 6f 77 5f 6e | 75 6c 6c 5f 67 6c 6f 62 |"allow_n|ull_glob|
|00001330| 5f 65 78 70 61 6e 73 69 | 6f 6e 22 20 62 61 73 68 |_expansi|on" bash|
|00001340| 29 20 28 22 61 6d 70 6d | 22 20 74 63 73 68 29 20 |) ("ampm|" tcsh) |
|00001350| 28 22 61 72 67 76 22 20 | 63 73 68 20 74 63 73 68 |("argv" |csh tcsh|
|00001360| 29 20 28 22 61 75 74 6f | 63 6f 72 72 65 63 74 22 |) ("auto|correct"|
|00001370| 20 74 63 73 68 29 20 28 | 22 61 75 74 6f 65 78 70 | tcsh) (|"autoexp|
|00001380| 61 6e 64 22 20 74 63 73 | 68 29 20 28 22 61 75 74 |and" tcs|h) ("aut|
|00001390| 6f 6c 69 73 74 22 20 74 | 63 73 68 29 20 28 22 61 |olist" t|csh) ("a|
|000013a0| 75 74 6f 6c 6f 67 6f 75 | 74 22 20 74 63 73 68 29 |utologou|t" tcsh)|
|000013b0| 20 28 22 61 75 74 6f 5f | 72 65 73 75 6d 65 22 20 | ("auto_|resume" |
|000013c0| 62 61 73 68 29 20 28 22 | 42 41 53 48 22 20 62 61 |bash) ("|BASH" ba|
|000013d0| 73 68 29 20 28 22 42 41 | 53 48 5f 56 45 52 53 49 |sh) ("BA|SH_VERSI|
|000013e0| 4f 4e 22 20 62 61 73 68 | 29 20 28 22 63 64 61 62 |ON" bash|) ("cdab|
|000013f0| 6c 65 5f 76 61 72 73 22 | 20 62 61 73 68 29 20 28 |le_vars"| bash) (|
|00001400| 22 63 64 70 61 74 68 22 | 20 63 73 68 20 74 63 73 |"cdpath"| csh tcs|
|00001410| 68 29 20 28 22 43 44 50 | 41 54 48 22 20 73 68 20 |h) ("CDP|ATH" sh |
|00001420| 6b 73 68 20 62 61 73 68 | 29 20 28 22 63 68 61 73 |ksh bash|) ("chas|
|00001430| 65 5f 73 79 6d 6c 69 6e | 6b 73 22 20 74 63 73 68 |e_symlin|ks" tcsh|
|00001440| 29 20 28 22 63 68 69 6c | 64 22 20 63 73 68 20 74 |) ("chil|d" csh t|
|00001450| 63 73 68 29 20 28 22 43 | 4f 4c 55 4d 4e 53 22 20 |csh) ("C|OLUMNS" |
|00001460| 6b 73 68 20 74 63 73 68 | 29 20 28 22 63 6f 72 72 |ksh tcsh|) ("corr|
|00001470| 65 63 74 22 20 74 63 73 | 68 29 20 28 22 64 65 78 |ect" tcs|h) ("dex|
|00001480| 74 72 61 63 74 22 20 74 | 63 73 68 29 20 28 22 65 |tract" t|csh) ("e|
|00001490| 63 68 6f 22 20 63 73 68 | 20 74 63 73 68 29 20 28 |cho" csh| tcsh) (|
|000014a0| 22 65 64 69 74 22 20 74 | 63 73 68 29 20 28 22 45 |"edit" t|csh) ("E|
|000014b0| 44 49 54 4f 52 22 29 20 | 28 22 65 6c 22 20 74 63 |DITOR") |("el" tc|
|000014c0| 73 68 29 20 28 22 45 4e | 56 22 20 6b 73 68 20 62 |sh) ("EN|V" ksh b|
|000014d0| 61 73 68 29 20 28 22 45 | 52 52 4e 4f 22 20 6b 73 |ash) ("E|RRNO" ks|
|000014e0| 68 29 20 28 22 45 55 49 | 44 22 20 62 61 73 68 29 |h) ("EUI|D" bash)|
|000014f0| 20 28 22 46 43 45 44 49 | 54 22 20 6b 73 68 20 62 | ("FCEDI|T" ksh b|
|00001500| 61 73 68 29 20 28 22 46 | 49 47 4e 4f 52 45 22 20 |ash) ("F|IGNORE" |
|00001510| 62 61 73 68 29 20 28 22 | 66 69 67 6e 6f 72 65 22 |bash) ("|fignore"|
|00001520| 20 74 63 73 68 29 20 28 | 22 46 50 41 54 48 22 20 | tcsh) (|"FPATH" |
|00001530| 6b 73 68 29 20 28 22 67 | 69 64 22 20 74 63 73 68 |ksh) ("g|id" tcsh|
|00001540| 29 20 28 22 67 6c 6f 62 | 5f 64 6f 74 5f 66 69 6c |) ("glob|_dot_fil|
|00001550| 65 6e 61 6d 65 73 22 20 | 62 61 73 68 29 20 28 22 |enames" |bash) ("|
|00001560| 68 69 73 74 63 68 61 72 | 73 22 20 62 61 73 68 20 |histchar|s" bash |
|00001570| 63 73 68 20 74 63 73 68 | 29 20 28 22 48 49 53 54 |csh tcsh|) ("HIST|
|00001580| 46 49 4c 45 22 20 6b 73 | 68 20 62 61 73 68 29 20 |FILE" ks|h bash) |
|00001590| 28 22 48 49 53 54 46 49 | 4c 45 53 49 5a 45 22 20 |("HISTFI|LESIZE" |
|000015a0| 62 61 73 68 29 20 28 22 | 68 69 73 74 6c 69 74 22 |bash) ("|histlit"|
|000015b0| 20 74 63 73 68 29 20 28 | 22 68 69 73 74 6f 72 79 | tcsh) (|"history|
|000015c0| 22 20 63 73 68 20 74 63 | 73 68 29 20 28 22 68 69 |" csh tc|sh) ("hi|
|000015d0| 73 74 6f 72 79 5f 63 6f | 6e 74 72 6f 6c 22 20 62 |story_co|ntrol" b|
|000015e0| 61 73 68 29 20 28 22 48 | 49 53 54 53 49 5a 45 22 |ash) ("H|ISTSIZE"|
|000015f0| 20 62 61 73 68 29 20 28 | 22 68 6f 6d 65 22 20 63 | bash) (|"home" c|
|00001600| 73 68 20 74 63 73 68 29 | 20 28 22 48 4f 4d 45 22 |sh tcsh)| ("HOME"|
|00001610| 29 20 28 22 48 4f 53 54 | 22 20 74 63 73 68 29 20 |) ("HOST|" tcsh) |
|00001620| 28 22 68 6f 73 74 6e 61 | 6d 65 5f 63 6f 6d 70 6c |("hostna|me_compl|
|00001630| 65 74 69 6f 6e 5f 66 69 | 6c 65 22 20 62 61 73 68 |etion_fi|le" bash|
|00001640| 29 20 28 22 48 4f 53 54 | 54 59 50 45 22 20 62 61 |) ("HOST|TYPE" ba|
|00001650| 73 68 20 74 63 73 68 29 | 20 28 22 48 50 41 54 48 |sh tcsh)| ("HPATH|
|00001660| 22 20 74 63 73 68 29 20 | 28 22 48 55 53 48 4c 4f |" tcsh) |("HUSHLO|
|00001670| 47 49 4e 22 29 20 28 22 | 49 46 53 22 20 73 68 20 |GIN") ("|IFS" sh |
|00001680| 6b 73 68 20 62 61 73 68 | 29 20 28 22 69 67 6e 6f |ksh bash|) ("igno|
|00001690| 72 65 65 6f 66 22 20 62 | 61 73 68 20 63 73 68 20 |reeof" b|ash csh |
|000016a0| 74 63 73 68 29 20 28 22 | 49 47 4e 4f 52 45 45 4f |tcsh) ("|IGNOREEO|
|000016b0| 46 22 20 62 61 73 68 29 | 20 28 22 69 67 6e 6f 72 |F" bash)| ("ignor|
|000016c0| 65 5f 73 79 6d 6c 69 6e | 6b 73 22 20 74 63 73 68 |e_symlin|ks" tcsh|
|000016d0| 29 20 28 22 4c 41 4e 47 | 22 29 20 28 22 4c 43 5f |) ("LANG|") ("LC_|
|000016e0| 43 4f 4c 4c 41 54 45 22 | 29 20 28 22 4c 43 5f 43 |COLLATE"|) ("LC_C|
|000016f0| 54 59 50 45 22 29 20 28 | 22 4c 43 5f 4d 45 53 53 |TYPE") (|"LC_MESS|
|00001700| 41 47 45 53 22 29 20 28 | 22 4c 43 5f 4d 4f 4e 45 |AGES") (|"LC_MONE|
|00001710| 54 41 52 59 22 29 20 28 | 22 4c 43 5f 4e 55 4d 45 |TARY") (|"LC_NUME|
|00001720| 52 49 43 22 29 20 28 22 | 4c 43 5f 54 49 4d 45 22 |RIC") ("|LC_TIME"|
|00001730| 29 20 28 22 4c 49 4e 45 | 4e 4f 22 20 6b 73 68 20 |) ("LINE|NO" ksh |
|00001740| 62 61 73 68 29 20 28 22 | 4c 49 4e 45 53 22 20 6b |bash) ("|LINES" k|
|00001750| 73 68 20 74 63 73 68 29 | 20 28 22 6c 69 73 74 6a |sh tcsh)| ("listj|
|00001760| 6f 62 73 22 20 74 63 73 | 68 29 20 28 22 6c 69 73 |obs" tcs|h) ("lis|
|00001770| 74 6c 69 6e 6b 73 22 20 | 74 63 73 68 29 20 28 22 |tlinks" |tcsh) ("|
|00001780| 6c 69 73 74 6d 61 78 22 | 20 74 63 73 68 29 20 28 |listmax"| tcsh) (|
|00001790| 22 4c 4f 47 4e 41 4d 45 | 22 29 20 28 22 6d 61 69 |"LOGNAME|") ("mai|
|000017a0| 6c 22 20 63 73 68 20 74 | 63 73 68 29 20 28 22 4d |l" csh t|csh) ("M|
|000017b0| 41 49 4c 22 29 20 28 22 | 4d 41 49 4c 43 48 45 43 |AIL") ("|MAILCHEC|
|000017c0| 4b 22 29 20 28 22 4d 41 | 49 4c 50 41 54 48 22 29 |K") ("MA|ILPATH")|
|000017d0| 20 28 22 4d 41 49 4c 5f | 57 41 52 4e 49 4e 47 22 | ("MAIL_|WARNING"|
|000017e0| 20 62 61 73 68 29 20 28 | 22 6d 61 74 63 68 62 65 | bash) (|"matchbe|
|000017f0| 65 70 22 20 74 63 73 68 | 29 20 28 22 6e 6f 62 65 |ep" tcsh|) ("nobe|
|00001800| 65 70 22 20 74 63 73 68 | 29 20 28 22 6e 6f 63 6c |ep" tcsh|) ("nocl|
|00001810| 6f 62 62 65 72 22 20 62 | 61 73 68 20 63 73 68 20 |obber" b|ash csh |
|00001820| 74 63 73 68 29 20 28 22 | 6e 6f 67 6c 6f 62 22 20 |tcsh) ("|noglob" |
|00001830| 63 73 68 20 74 63 73 68 | 29 20 28 22 6e 6f 6c 69 |csh tcsh|) ("noli|
|00001840| 6e 6b 73 22 20 62 61 73 | 68 29 20 28 22 6e 6f 6e |nks" bas|h) ("non|
|00001850| 6f 6d 61 74 63 68 22 20 | 63 73 68 20 74 63 73 68 |omatch" |csh tcsh|
|00001860| 29 20 28 22 4e 4f 52 45 | 42 49 4e 44 22 20 74 63 |) ("NORE|BIND" tc|
|00001870| 73 68 29 20 28 22 6e 6f | 74 69 66 79 22 20 62 61 |sh) ("no|tify" ba|
|00001880| 73 68 29 20 28 22 6e 6f | 5f 65 78 69 74 5f 6f 6e |sh) ("no|_exit_on|
|00001890| 5f 66 61 69 6c 65 64 5f | 65 78 65 63 22 20 62 61 |_failed_|exec" ba|
|000018a0| 73 68 29 20 28 22 4e 4f | 5f 50 52 4f 4d 50 54 5f |sh) ("NO|_PROMPT_|
|000018b0| 56 41 52 53 22 20 62 61 | 73 68 29 20 28 22 6f 69 |VARS" ba|sh) ("oi|
|000018c0| 64 22 20 74 63 73 68 29 | 20 28 22 4f 4c 44 50 57 |d" tcsh)| ("OLDPW|
|000018d0| 44 22 20 6b 73 68 20 62 | 61 73 68 29 20 28 22 4f |D" ksh b|ash) ("O|
|000018e0| 50 54 41 52 47 22 20 73 | 68 20 6b 73 68 20 62 61 |PTARG" s|h ksh ba|
|000018f0| 73 68 29 20 28 22 4f 50 | 54 45 52 52 22 20 62 61 |sh) ("OP|TERR" ba|
|00001900| 73 68 29 20 28 22 4f 50 | 54 49 4e 44 22 20 73 68 |sh) ("OP|TIND" sh|
|00001910| 20 6b 73 68 20 62 61 73 | 68 29 20 28 22 50 41 47 | ksh bas|h) ("PAG|
|00001920| 45 52 22 29 20 28 22 70 | 61 74 68 22 20 63 73 68 |ER") ("p|ath" csh|
|00001930| 20 74 63 73 68 29 20 28 | 22 50 41 54 48 22 29 20 | tcsh) (|"PATH") |
|00001940| 28 22 50 50 49 44 22 20 | 6b 73 68 20 62 61 73 68 |("PPID" |ksh bash|
|00001950| 29 20 28 22 70 72 69 6e | 74 65 78 69 74 76 61 6c |) ("prin|texitval|
|00001960| 75 65 22 20 74 63 73 68 | 29 20 28 22 70 72 6f 6d |ue" tcsh|) ("prom|
|00001970| 70 74 22 20 63 73 68 20 | 74 63 73 68 29 20 28 22 |pt" csh |tcsh) ("|
|00001980| 70 72 6f 6d 70 74 32 22 | 20 74 63 73 68 29 20 28 |prompt2"| tcsh) (|
|00001990| 22 70 72 6f 6d 70 74 33 | 22 20 74 63 73 68 29 20 |"prompt3|" tcsh) |
|000019a0| 28 22 50 52 4f 4d 50 54 | 5f 43 4f 4d 4d 41 4e 44 |("PROMPT|_COMMAND|
|000019b0| 22 20 62 61 73 68 29 20 | 28 22 50 53 31 22 20 73 |" bash) |("PS1" s|
|000019c0| 68 20 6b 73 68 20 62 61 | 73 68 29 20 28 22 50 53 |h ksh ba|sh) ("PS|
|000019d0| 32 22 20 73 68 20 6b 73 | 68 20 62 61 73 68 29 20 |2" sh ks|h bash) |
|000019e0| 28 22 50 53 33 22 20 6b | 73 68 29 20 28 22 50 53 |("PS3" k|sh) ("PS|
|000019f0| 34 22 20 6b 73 68 20 62 | 61 73 68 29 20 28 22 70 |4" ksh b|ash) ("p|
|00001a00| 75 73 68 64 73 69 6c 65 | 6e 74 22 20 74 63 73 68 |ushdsile|nt" tcsh|
|00001a10| 29 20 28 22 70 75 73 68 | 64 74 6f 68 6f 6d 65 22 |) ("push|dtohome"|
|00001a20| 20 74 63 73 68 29 20 28 | 22 70 75 73 68 64 5f 73 | tcsh) (|"pushd_s|
|00001a30| 69 6c 65 6e 74 22 20 62 | 61 73 68 29 20 28 22 50 |ilent" b|ash) ("P|
|00001a40| 57 44 22 20 6b 73 68 20 | 62 61 73 68 29 20 28 22 |WD" ksh |bash) ("|
|00001a50| 52 41 4e 44 4f 4d 22 20 | 6b 73 68 20 62 61 73 68 |RANDOM" |ksh bash|
|00001a60| 29 20 28 22 72 65 63 65 | 78 61 63 74 22 20 74 63 |) ("rece|xact" tc|
|00001a70| 73 68 29 20 28 22 72 65 | 63 6f 67 6e 69 7a 65 5f |sh) ("re|cognize_|
|00001a80| 6f 6e 6c 79 5f 65 78 65 | 63 75 74 61 62 6c 65 73 |only_exe|cutables|
|00001a90| 22 20 74 63 73 68 29 20 | 28 22 52 45 50 4c 59 22 |" tcsh) |("REPLY"|
|00001aa0| 20 6b 73 68 20 62 61 73 | 68 29 20 28 22 72 6d 73 | ksh bas|h) ("rms|
|00001ab0| 74 61 72 22 20 74 63 73 | 68 29 20 28 22 73 61 76 |tar" tcs|h) ("sav|
|00001ac0| 65 68 69 73 74 22 20 74 | 63 73 68 29 20 28 22 53 |ehist" t|csh) ("S|
|00001ad0| 45 43 4f 4e 44 53 22 20 | 6b 73 68 20 62 61 73 68 |ECONDS" |ksh bash|
|00001ae0| 29 20 28 22 73 68 65 6c | 6c 22 20 63 73 68 20 74 |) ("shel|l" csh t|
|00001af0| 63 73 68 29 20 28 22 53 | 48 45 4c 4c 22 29 20 28 |csh) ("S|HELL") (|
|00001b00| 22 53 48 4c 56 4c 22 20 | 62 61 73 68 20 74 63 73 |"SHLVL" |bash tcs|
|00001b10| 68 29 20 28 22 73 68 6f | 77 64 6f 74 73 22 20 74 |h) ("sho|wdots" t|
|00001b20| 63 73 68 29 20 28 22 73 | 6c 22 20 74 63 73 68 29 |csh) ("s|l" tcsh)|
|00001b30| 20 28 22 73 74 61 74 75 | 73 22 20 63 73 68 20 74 | ("statu|s" csh t|
|00001b40| 63 73 68 29 20 28 22 53 | 59 53 54 59 50 45 22 20 |csh) ("S|YSTYPE" |
|00001b50| 74 63 73 68 29 20 28 22 | 74 63 73 68 22 20 74 63 |tcsh) ("|tcsh" tc|
|00001b60| 73 68 29 20 28 22 74 65 | 72 6d 22 20 74 63 73 68 |sh) ("te|rm" tcsh|
|00001b70| 29 20 28 22 54 45 52 4d | 22 29 20 28 22 54 45 52 |) ("TERM|") ("TER|
|00001b80| 4d 43 41 50 22 29 20 28 | 22 74 69 6d 65 22 20 63 |MCAP") (|"time" c|
|00001b90| 73 68 20 74 63 73 68 29 | 20 28 22 54 4d 4f 55 54 |sh tcsh)| ("TMOUT|
|00001ba0| 22 20 6b 73 68 20 62 61 | 73 68 29 20 28 22 74 70 |" ksh ba|sh) ("tp|
|00001bb0| 65 72 69 6f 64 22 20 74 | 63 73 68 29 20 28 22 74 |eriod" t|csh) ("t|
|00001bc0| 74 79 22 20 74 63 73 68 | 29 20 28 22 55 49 44 22 |ty" tcsh|) ("UID"|
|00001bd0| 20 62 61 73 68 29 20 28 | 22 75 69 64 22 20 74 63 | bash) (|"uid" tc|
|00001be0| 73 68 29 20 28 22 76 65 | 72 62 6f 73 65 22 20 63 |sh) ("ve|rbose" c|
|00001bf0| 73 68 20 74 63 73 68 29 | 20 28 22 76 65 72 73 69 |sh tcsh)| ("versi|
|00001c00| 6f 6e 22 20 74 63 73 68 | 29 20 28 22 76 69 73 69 |on" tcsh|) ("visi|
|00001c10| 62 6c 65 62 65 6c 6c 22 | 20 74 63 73 68 29 20 28 |blebell"| tcsh) (|
|00001c20| 22 56 49 53 55 41 4c 22 | 29 20 28 22 77 61 74 63 |"VISUAL"|) ("watc|
|00001c30| 68 22 20 74 63 73 68 29 | 20 28 22 77 68 6f 22 20 |h" tcsh)| ("who" |
|00001c40| 74 63 73 68 29 20 28 22 | 77 6f 72 64 63 68 61 72 |tcsh) ("|wordchar|
|00001c50| 73 22 20 74 63 73 68 29 | 29 29 20 22 5c 0a 41 6c |s" tcsh)|)) "\.Al|
|00001c60| 69 73 74 20 6f 66 20 61 | 6c 6c 20 65 6e 76 69 72 |ist of a|ll envir|
|00001c70| 6f 6e 6d 65 6e 74 20 61 | 6e 64 20 73 68 65 6c 6c |onment a|nd shell|
|00001c80| 20 76 61 72 69 61 62 6c | 65 73 20 75 73 65 64 20 | variabl|es used |
|00001c90| 66 6f 72 20 63 6f 6d 70 | 6c 65 74 69 6e 67 20 72 |for comp|leting r|
|00001ca0| 65 61 64 2e 0a 56 61 72 | 69 61 62 6c 65 73 20 6f |ead..Var|iables o|
|00001cb0| 6e 6c 79 20 75 6e 64 65 | 72 73 74 6f 6f 64 20 62 |nly unde|rstood b|
|00001cc0| 79 20 73 6f 6d 65 20 73 | 68 65 6c 6c 73 20 61 72 |y some s|hells ar|
|00001cd0| 65 20 61 73 73 6f 63 69 | 61 74 65 64 20 74 6f 20 |e associ|ated to |
|00001ce0| 61 20 6c 69 73 74 20 6f | 66 20 74 68 6f 73 65 2e |a list o|f those.|
|00001cf0| 22 29 0a 28 64 65 66 76 | 61 72 20 73 68 2d 66 6f |").(defv|ar sh-fo|
|00001d00| 6e 74 2d 6c 6f 63 6b 2d | 6b 65 79 77 6f 72 64 73 |nt-lock-|keywords|
|00001d10| 20 28 71 75 6f 74 65 20 | 28 28 22 5b 20 09 5d 5c | (quote |(("[ .]\|
|00001d20| 5c 28 23 2e 2a 5c 5c 29 | 22 20 31 20 66 6f 6e 74 |\(#.*\\)|" 1 font|
|00001d30| 2d 6c 6f 63 6b 2d 63 6f | 6d 6d 65 6e 74 2d 66 61 |-lock-co|mment-fa|
|00001d40| 63 65 29 20 28 22 5c 22 | 5b 5e 60 5d 2a 5c 22 5c |ce) ("\"|[^`]*\"\|
|00001d50| 5c 7c 27 2e 2a 27 5c 5c | 7c 5c 5c 5c 5c 5b 5e 5c |\|'.*'\\||\\\\[^\|
|00001d60| 6e 6e 74 63 5d 22 20 2e | 20 66 6f 6e 74 2d 6c 6f |nntc]" .| font-lo|
|00001d70| 63 6b 2d 73 74 72 69 6e | 67 2d 66 61 63 65 29 29 |ck-strin|g-face))|
|00001d80| 29 20 22 5c 0a 2a 52 75 | 6c 65 73 20 66 6f 72 20 |) "\.*Ru|les for |
|00001d90| 68 69 67 68 6c 69 67 68 | 74 69 6e 67 20 73 68 65 |highligh|ting she|
|00001da0| 6c 6c 20 73 63 72 69 70 | 74 73 2e 0a 54 68 69 73 |ll scrip|ts..This|
|00001db0| 20 76 61 72 69 61 62 6c | 65 20 69 73 20 69 6e 63 | variabl|e is inc|
|00001dc0| 6c 75 64 65 64 20 69 6e | 74 6f 20 74 68 65 20 76 |luded in|to the v|
|00001dd0| 61 72 69 6f 75 73 20 76 | 61 72 69 61 62 6c 65 73 |arious v|ariables|
|00001de0| 0a 60 73 68 2d 53 48 45 | 4c 4c 2d 66 6f 6e 74 2d |.`sh-SHE|LL-font-|
|00001df0| 6c 6f 63 6b 2d 6b 65 79 | 77 6f 72 64 73 27 2e 20 |lock-key|words'. |
|00001e00| 20 49 66 20 6e 6f 20 73 | 75 63 68 20 76 61 72 69 | If no s|uch vari|
|00001e10| 61 62 6c 65 20 65 78 69 | 73 74 73 20 66 6f 72 20 |able exi|sts for |
|00001e20| 73 6f 6d 65 20 73 68 65 | 6c 6c 2c 0a 74 68 69 73 |some she|ll,.this|
|00001e30| 20 6f 6e 65 20 69 73 20 | 75 73 65 64 2e 22 29 0a | one is |used.").|
|00001e40| 28 64 65 66 76 61 72 20 | 73 68 2d 73 68 2d 66 6f |(defvar |sh-sh-fo|
|00001e50| 6e 74 2d 6c 6f 63 6b 2d | 6b 65 79 77 6f 72 64 73 |nt-lock-|keywords|
|00001e60| 20 28 61 70 70 65 6e 64 | 20 73 68 2d 66 6f 6e 74 | (append| sh-font|
|00001e70| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 73 20 28 |-lock-ke|ywords (|
|00001e80| 71 75 6f 74 65 20 28 28 | 22 5c 5c 28 5e 5c 5c 7c |quote ((|"\\(^\\||
|00001e90| 5b 5e 2d 2e 5f 61 2d 7a | 30 2d 39 5d 5c 5c 29 5c |[^-._a-z|0-9]\\)\|
|00001ea0| 5c 28 63 61 73 65 5c 5c | 7c 64 6f 5c 5c 7c 64 6f |\(case\\||do\\|do|
|00001eb0| 6e 65 5c 5c 7c 65 6c 69 | 66 5c 5c 7c 65 6c 73 65 |ne\\|eli|f\\|else|
|00001ec0| 5c 5c 7c 65 73 61 63 5c | 5c 7c 66 69 5c 5c 7c 66 |\\|esac\|\|fi\\|f|
|00001ed0| 6f 72 5c 5c 7c 69 66 5c | 5c 7c 69 6e 5c 5c 7c 74 |or\\|if\|\|in\\|t|
|00001ee0| 68 65 6e 5c 5c 7c 75 6e | 74 69 6c 5c 5c 7c 77 68 |hen\\|un|til\\|wh|
|00001ef0| 69 6c 65 5c 5c 29 5c 5c | 28 24 5c 5c 7c 5b 5e 2d |ile\\)\\|($\\|[^-|
|00001f00| 2e 5f 61 2d 7a 30 2d 39 | 5d 5c 5c 29 22 20 32 20 |._a-z0-9|]\\)" 2 |
|00001f10| 66 6f 6e 74 2d 6c 6f 63 | 6b 2d 6b 65 79 77 6f 72 |font-loc|k-keywor|
|00001f20| 64 2d 66 61 63 65 20 74 | 29 29 29 29 20 22 5c 0a |d-face t|)))) "\.|
|00001f30| 2a 52 75 6c 65 73 20 66 | 6f 72 20 68 69 67 68 6c |*Rules f|or highl|
|00001f40| 69 67 68 74 69 6e 67 20 | 42 6f 75 72 6e 65 20 73 |ighting |Bourne s|
|00001f50| 68 65 6c 6c 20 73 63 72 | 69 70 74 73 2e 22 29 0a |hell scr|ipts.").|
|00001f60| 28 64 65 66 76 61 72 20 | 73 68 2d 6b 73 68 2d 66 |(defvar |sh-ksh-f|
|00001f70| 6f 6e 74 2d 6c 6f 63 6b | 2d 6b 65 79 77 6f 72 64 |ont-lock|-keyword|
|00001f80| 73 20 28 61 70 70 65 6e | 64 20 73 68 2d 73 68 2d |s (appen|d sh-sh-|
|00001f90| 66 6f 6e 74 2d 6c 6f 63 | 6b 2d 6b 65 79 77 6f 72 |font-loc|k-keywor|
|00001fa0| 64 73 20 28 71 75 6f 74 | 65 20 28 28 22 5c 5c 28 |ds (quot|e (("\\(|
|00001fb0| 5e 5c 5c 7c 5b 5e 2d 2e | 5f 61 2d 7a 30 2d 39 5d |^\\|[^-.|_a-z0-9]|
|00001fc0| 5c 5c 29 5c 5c 28 66 75 | 6e 63 74 69 6f 6e 5c 5c |\\)\\(fu|nction\\|
|00001fd0| 7c 73 65 6c 65 63 74 5c | 5c 29 5c 5c 28 24 5c 5c ||select\|\)\\($\\|
|00001fe0| 7c 5b 5e 2d 2e 5f 61 2d | 7a 30 2d 39 5d 5c 5c 29 ||[^-._a-|z0-9]\\)|
|00001ff0| 22 20 32 20 66 6f 6e 74 | 2d 6c 6f 63 6b 2d 6b 65 |" 2 font|-lock-ke|
|00002000| 79 77 6f 72 64 2d 66 61 | 63 65 20 74 29 29 29 29 |yword-fa|ce t))))|
|00002010| 20 22 5c 0a 2a 52 75 6c | 65 73 20 66 6f 72 20 68 | "\.*Rul|es for h|
|00002020| 69 67 68 6c 69 67 68 74 | 69 6e 67 20 4b 6f 72 6e |ighlight|ing Korn|
|00002030| 20 73 68 65 6c 6c 20 73 | 63 72 69 70 74 73 2e 22 | shell s|cripts."|
|00002040| 29 0a 28 64 65 66 76 61 | 72 20 73 68 2d 62 61 73 |).(defva|r sh-bas|
|00002050| 68 2d 66 6f 6e 74 2d 6c | 6f 63 6b 2d 6b 65 79 77 |h-font-l|ock-keyw|
|00002060| 6f 72 64 73 20 28 61 70 | 70 65 6e 64 20 73 68 2d |ords (ap|pend sh-|
|00002070| 73 68 2d 66 6f 6e 74 2d | 6c 6f 63 6b 2d 6b 65 79 |sh-font-|lock-key|
|00002080| 77 6f 72 64 73 20 28 71 | 75 6f 74 65 20 28 28 22 |words (q|uote (("|
|00002090| 5c 5c 28 5e 5c 5c 7c 5b | 5e 2d 2e 5f 61 2d 7a 30 |\\(^\\|[|^-._a-z0|
|000020a0| 2d 39 5d 5c 5c 29 5c 5c | 28 66 75 6e 63 74 69 6f |-9]\\)\\|(functio|
|000020b0| 6e 5c 5c 29 5c 5c 28 24 | 5c 5c 7c 5b 5e 2d 2e 5f |n\\)\\($|\\|[^-._|
|000020c0| 61 2d 7a 30 2d 39 5d 5c | 5c 29 22 20 32 20 66 6f |a-z0-9]\|\)" 2 fo|
|000020d0| 6e 74 2d 6c 6f 63 6b 2d | 6b 65 79 77 6f 72 64 2d |nt-lock-|keyword-|
|000020e0| 66 61 63 65 20 74 29 29 | 29 29 20 22 5c 0a 2a 52 |face t))|)) "\.*R|
|000020f0| 75 6c 65 73 20 66 6f 72 | 20 68 69 67 68 6c 69 67 |ules for| highlig|
|00002100| 68 74 69 6e 67 20 42 6f | 75 72 6e 65 20 61 67 61 |hting Bo|urne aga|
|00002110| 69 6e 20 73 68 65 6c 6c | 20 73 63 72 69 70 74 73 |in shell| scripts|
|00002120| 2e 22 29 0a 28 64 65 66 | 76 61 72 20 73 68 2d 63 |.").(def|var sh-c|
|00002130| 73 68 2d 66 6f 6e 74 2d | 6c 6f 63 6b 2d 6b 65 79 |sh-font-|lock-key|
|00002140| 77 6f 72 64 73 20 28 61 | 70 70 65 6e 64 20 73 68 |words (a|ppend sh|
|00002150| 2d 66 6f 6e 74 2d 6c 6f | 63 6b 2d 6b 65 79 77 6f |-font-lo|ck-keywo|
|00002160| 72 64 73 20 28 71 75 6f | 74 65 20 28 28 22 5c 5c |rds (quo|te (("\\|
|00002170| 28 5e 5c 5c 7c 5b 5e 2d | 2e 5f 61 2d 7a 30 2d 39 |(^\\|[^-|._a-z0-9|
|00002180| 5d 5c 5c 29 5c 5c 28 62 | 72 65 61 6b 73 77 5c 5c |]\\)\\(b|reaksw\\|
|00002190| 7c 63 61 73 65 5c 5c 7c | 64 65 66 61 75 6c 74 5c ||case\\||default\|
|000021a0| 5c 7c 65 6c 73 65 5c 5c | 7c 65 6e 64 5c 5c 7c 65 |\|else\\||end\\|e|
|000021b0| 6e 64 69 66 5c 5c 7c 66 | 6f 72 65 61 63 68 5c 5c |ndif\\|f|oreach\\|
|000021c0| 7c 69 66 5c 5c 7c 73 77 | 69 74 63 68 5c 5c 7c 74 ||if\\|sw|itch\\|t|
|000021d0| 68 65 6e 5c 5c 7c 77 68 | 69 6c 65 5c 5c 29 5c 5c |hen\\|wh|ile\\)\\|
|000021e0| 28 24 5c 5c 7c 5b 5e 2d | 2e 5f 61 2d 7a 30 2d 39 |($\\|[^-|._a-z0-9|
|000021f0| 5d 5c 5c 29 22 20 32 20 | 66 6f 6e 74 2d 6c 6f 63 |]\\)" 2 |font-loc|
|00002200| 6b 2d 6b 65 79 77 6f 72 | 64 2d 66 61 63 65 20 74 |k-keywor|d-face t|
|00002210| 29 29 29 29 20 22 5c 0a | 2a 52 75 6c 65 73 20 66 |)))) "\.|*Rules f|
|00002220| 6f 72 20 68 69 67 68 6c | 69 67 68 74 69 6e 67 20 |or highl|ighting |
|00002230| 43 20 73 68 65 6c 6c 20 | 73 63 72 69 70 74 73 2e |C shell |scripts.|
|00002240| 22 29 0a 28 64 65 66 76 | 61 72 20 73 68 2d 74 63 |").(defv|ar sh-tc|
|00002250| 73 68 2d 66 6f 6e 74 2d | 6c 6f 63 6b 2d 6b 65 79 |sh-font-|lock-key|
|00002260| 77 6f 72 64 73 20 73 68 | 2d 63 73 68 2d 66 6f 6e |words sh|-csh-fon|
|00002270| 74 2d 6c 6f 63 6b 2d 6b | 65 79 77 6f 72 64 73 20 |t-lock-k|eywords |
|00002280| 22 5c 0a 2a 52 75 6c 65 | 73 20 66 6f 72 20 68 69 |"\.*Rule|s for hi|
|00002290| 67 68 6c 69 67 68 74 69 | 6e 67 20 54 6f 72 6f 6e |ghlighti|ng Toron|
|000022a0| 74 6f 20 43 20 73 68 65 | 6c 6c 20 73 63 72 69 70 |to C she|ll scrip|
|000022b0| 74 73 2e 22 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |ts.").(d|efalias |
|000022c0| 27 73 68 2d 6f 72 2d 6f | 74 68 65 72 2d 6d 6f 64 |'sh-or-o|ther-mod|
|000022d0| 65 20 23 5b 6e 69 6c 20 | 22 08 89 19 83 15 00 c2 |e #[nil |".......|
|000022e0| 09 40 40 21 84 15 00 09 | 41 89 11 84 06 00 09 40 |.@@!....|A......@|
|000022f0| 41 29 86 1d 00 c3 20 87 | 22 20 5b 6d 61 67 69 63 |A).... .|" [magic|
|00002300| 2d 6e 75 6d 62 65 72 2d | 61 6c 69 73 74 20 6c 20 |-number-|alist l |
|00002310| 6c 6f 6f 6b 69 6e 67 2d | 61 74 20 73 68 2d 6d 6f |looking-|at sh-mo|
|00002320| 64 65 5d 20 33 20 22 5c | 0a 44 65 63 69 64 65 20 |de] 3 "\|.Decide |
|00002330| 77 68 65 74 68 65 72 20 | 74 68 69 73 20 69 73 20 |whether |this is |
|00002340| 61 20 63 6f 6d 70 69 6c | 65 64 20 65 78 65 63 75 |a compil|ed execu|
|00002350| 74 61 62 6c 65 20 6f 72 | 20 61 20 73 63 72 69 70 |table or| a scrip|
|00002360| 74 2e 0a 55 73 75 61 6c | 6c 79 20 74 68 65 20 66 |t..Usual|ly the f|
|00002370| 69 6c 65 2d 6e 61 6d 65 | 73 20 6f 66 20 73 63 72 |ile-name|s of scr|
|00002380| 69 70 74 73 20 61 6e 64 | 20 62 69 6e 61 72 69 65 |ipts and| binarie|
|00002390| 73 20 63 61 6e 6e 6f 74 | 20 62 65 20 61 75 74 6f |s cannot| be auto|
|000023a0| 6d 61 74 69 63 61 6c 6c | 79 0a 64 69 73 74 69 6e |maticall|y.distin|
|000023b0| 67 75 69 73 68 65 64 2c | 20 73 6f 20 74 68 65 20 |guished,| so the |
|000023c0| 70 72 65 73 65 6e 63 65 | 20 6f 66 20 61 6e 20 65 |presence| of an e|
|000023d0| 78 65 63 75 74 61 62 6c | 65 27 73 20 6d 61 67 69 |xecutabl|e's magi|
|000023e0| 63 20 6e 75 6d 62 65 72 | 20 69 73 20 75 73 65 64 |c number| is used|
|000023f0| 2e 22 5d 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |."]).(de|falias '|
|00002400| 73 68 2d 6d 6f 64 65 20 | 23 5b 6e 69 6c 20 22 c0 |sh-mode |#[nil ".|
|00002410| 20 88 c1 5c 6e 21 88 c3 | 5c 66 21 88 c5 c6 21 88 | ..\n!..|\f!...!.|
|00002420| c5 c7 21 88 c5 c8 21 88 | c5 c9 21 88 c5 ca 21 88 |..!...!.|..!...!.|
|00002430| c5 cb 21 88 c5 cc 21 88 | c5 cd 21 88 c5 ce 21 88 |..!...!.|..!...!.|
|00002440| c5 cf 21 88 c5 d0 21 88 | c5 d1 21 88 c5 d2 21 88 |..!...!.|..!...!.|
|00002450| d3 16 14 d5 16 16 d7 16 | 06 d8 16 07 d9 16 09 0e |........|........|
|00002460| 1a 16 1b dc 16 5c 6e dd | 16 11 de 16 0e df 16 0f |.....\n.|........|
|00002470| 8a 65 62 88 e0 e1 e2 21 | 83 71 00 e3 94 e3 95 7b |.eb....!|.q.....{|
|00002480| 82 73 00 0e 0b 21 88 29 | e4 e5 21 83 8c 00 0e 25 |.s...!.)|..!....%|
|00002490| 83 8c 00 0e 26 dc 3d 84 | 8c 00 e7 dd 21 88 e8 e9 |....&.=.|....!...|
|000024a0| 21 87 22 20 5b 6b 69 6c | 6c 2d 61 6c 6c 2d 6c 6f |!." [kil|l-all-lo|
|000024b0| 63 61 6c 2d 76 61 72 69 | 61 62 6c 65 73 20 73 65 |cal-vari|ables se|
|000024c0| 74 2d 73 79 6e 74 61 78 | 2d 74 61 62 6c 65 20 73 |t-syntax|-table s|
|000024d0| 68 2d 6d 6f 64 65 2d 73 | 79 6e 74 61 78 2d 74 61 |h-mode-s|yntax-ta|
|000024e0| 62 6c 65 20 75 73 65 2d | 6c 6f 63 61 6c 2d 6d 61 |ble use-|local-ma|
|000024f0| 70 20 73 68 2d 6d 6f 64 | 65 2d 6d 61 70 20 6d 61 |p sh-mod|e-map ma|
|00002500| 6b 65 2d 6c 6f 63 61 6c | 2d 76 61 72 69 61 62 6c |ke-local|-variabl|
|00002510| 65 20 69 6e 64 65 6e 74 | 2d 6c 69 6e 65 2d 66 75 |e indent|-line-fu|
|00002520| 6e 63 74 69 6f 6e 20 63 | 6f 6d 6d 65 6e 74 2d 73 |nction c|omment-s|
|00002530| 74 61 72 74 20 63 6f 6d | 6d 65 6e 74 2d 73 74 61 |tart com|ment-sta|
|00002540| 72 74 2d 73 6b 69 70 20 | 61 66 74 65 72 2d 73 61 |rt-skip |after-sa|
|00002550| 76 65 2d 68 6f 6f 6b 20 | 72 65 71 75 69 72 65 2d |ve-hook |require-|
|00002560| 66 69 6e 61 6c 2d 6e 65 | 77 6c 69 6e 65 20 73 68 |final-ne|wline sh|
|00002570| 2d 73 68 65 6c 6c 2d 70 | 61 74 68 20 73 68 2d 73 |-shell-p|ath sh-s|
|00002580| 68 65 6c 6c 20 73 68 2d | 73 68 65 6c 6c 2d 69 73 |hell sh-|shell-is|
|00002590| 2d 63 73 68 20 70 61 69 | 72 2d 61 6c 69 73 74 20 |-csh pai|r-alist |
|000025a0| 70 61 69 72 2d 66 69 6c | 74 65 72 20 66 6f 6e 74 |pair-fil|ter font|
|000025b0| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 73 20 66 |-lock-ke|ywords f|
|000025c0| 6f 6e 74 2d 6c 6f 63 6b | 2d 6b 65 79 77 6f 72 64 |ont-lock|-keyword|
|000025d0| 73 2d 63 61 73 65 2d 66 | 6f 6c 64 2d 73 65 61 72 |s-case-f|old-sear|
|000025e0| 63 68 20 73 68 2d 76 61 | 72 69 61 62 6c 65 73 20 |ch sh-va|riables |
|000025f0| 73 68 2d 6d 6f 64 65 20 | 6d 61 6a 6f 72 2d 6d 6f |sh-mode |major-mo|
|00002600| 64 65 20 22 53 68 65 6c | 6c 2d 73 63 72 69 70 74 |de "Shel|l-script|
|00002610| 22 20 6d 6f 64 65 2d 6e | 61 6d 65 20 73 68 2d 69 |" mode-n|ame sh-i|
|00002620| 6e 64 65 6e 74 2d 6c 69 | 6e 65 20 22 23 20 22 20 |ndent-li|ne "# " |
|00002630| 73 68 2d 63 68 6d 6f 64 | 20 73 68 2d 74 61 62 2d |sh-chmod| sh-tab-|
|00002640| 77 69 64 74 68 20 74 61 | 62 2d 77 69 64 74 68 20 |width ta|b-width |
|00002650| 74 20 6e 69 6c 20 28 28 | 39 36 20 5f 20 39 36 29 |t nil ((|96 _ 96)|
|00002660| 29 20 73 68 2d 71 75 6f | 74 65 64 2d 70 20 73 68 |) sh-quo|ted-p sh|
|00002670| 2d 73 65 74 2d 73 68 65 | 6c 6c 20 6c 6f 6f 6b 69 |-set-she|ll looki|
|00002680| 6e 67 2d 61 74 20 22 23 | 21 5b 09 20 5d 2a 5c 5c |ng-at "#|![. ]*\\|
|00002690| 28 5b 5e 09 5c 6e 20 5d | 2b 5c 5c 29 22 20 31 20 |([^.\n ]|+\\)" 1 |
|000026a0| 62 6f 75 6e 64 70 20 66 | 69 6e 64 2d 66 69 6c 65 |boundp f|ind-file|
|000026b0| 20 73 68 2d 66 69 6e 64 | 2d 66 69 6c 65 2d 6d 6f | sh-find|-file-mo|
|000026c0| 64 69 66 69 65 73 20 73 | 65 74 2d 62 75 66 66 65 |difies s|et-buffe|
|000026d0| 72 2d 6d 6f 64 69 66 69 | 65 64 2d 70 20 72 75 6e |r-modifi|ed-p run|
|000026e0| 2d 68 6f 6f 6b 73 20 73 | 68 2d 6d 6f 64 65 2d 68 |-hooks s|h-mode-h|
|000026f0| 6f 6f 6b 5d 20 33 20 22 | 5c 0a 4d 61 6a 6f 72 20 |ook] 3 "|\.Major |
|00002700| 6d 6f 64 65 20 66 6f 72 | 20 65 64 69 74 69 6e 67 |mode for| editing|
|00002710| 20 73 68 65 6c 6c 20 73 | 63 72 69 70 74 73 2e 0a | shell s|cripts..|
|00002720| 54 68 69 73 20 6d 6f 64 | 65 20 77 6f 72 6b 73 20 |This mod|e works |
|00002730| 66 6f 72 20 6d 61 6e 79 | 20 73 68 65 6c 6c 73 2c |for many| shells,|
|00002740| 20 73 69 6e 63 65 20 74 | 68 65 79 20 61 6c 6c 20 | since t|hey all |
|00002750| 68 61 76 65 20 72 6f 75 | 67 68 6c 79 20 74 68 65 |have rou|ghly the|
|00002760| 20 73 61 6d 65 20 73 79 | 6e 74 61 78 2c 0a 61 73 | same sy|ntax,.as|
|00002770| 20 66 61 72 20 61 73 20 | 63 6f 6d 6d 61 6e 64 73 | far as |commands|
|00002780| 2c 20 61 72 67 75 6d 65 | 6e 74 73 2c 20 76 61 72 |, argume|nts, var|
|00002790| 69 61 62 6c 65 73 2c 20 | 70 69 70 65 73 2c 20 63 |iables, |pipes, c|
|000027a0| 6f 6d 6d 65 6e 74 73 20 | 65 74 63 2e 20 61 72 65 |omments |etc. are|
|000027b0| 20 63 6f 6e 63 65 72 6e | 65 64 2e 0a 55 6e 6c 65 | concern|ed..Unle|
|000027c0| 73 73 20 74 68 65 20 66 | 69 6c 65 27 73 20 6d 61 |ss the f|ile's ma|
|000027d0| 67 69 63 20 6e 75 6d 62 | 65 72 20 69 6e 64 69 63 |gic numb|er indic|
|000027e0| 61 74 65 73 20 74 68 65 | 20 73 68 65 6c 6c 2c 20 |ates the| shell, |
|000027f0| 79 6f 75 72 20 75 73 75 | 61 6c 20 73 68 65 6c 6c |your usu|al shell|
|00002800| 20 69 73 0a 61 73 73 75 | 6d 65 64 2e 20 20 53 69 | is.assu|med. Si|
|00002810| 6e 63 65 20 66 69 6c 65 | 6e 61 6d 65 73 20 72 61 |nce file|names ra|
|00002820| 72 65 6c 79 20 67 69 76 | 65 20 61 20 63 6c 75 65 |rely giv|e a clue|
|00002830| 2c 20 74 68 65 79 20 61 | 72 65 20 6e 6f 74 20 66 |, they a|re not f|
|00002840| 75 72 74 68 65 72 20 61 | 6e 61 6c 79 7a 65 64 2e |urther a|nalyzed.|
|00002850| 0a 0a 54 68 65 20 73 79 | 6e 74 61 78 20 6f 66 20 |..The sy|ntax of |
|00002860| 74 68 65 20 73 74 61 74 | 65 6d 65 6e 74 73 20 76 |the stat|ements v|
|00002870| 61 72 69 65 73 20 77 69 | 74 68 20 74 68 65 20 73 |aries wi|th the s|
|00002880| 68 65 6c 6c 20 62 65 69 | 6e 67 20 75 73 65 64 2e |hell bei|ng used.|
|00002890| 20 20 54 68 65 20 73 79 | 6e 74 61 78 20 6f 66 0a | The sy|ntax of.|
|000028a0| 73 74 61 74 65 6d 65 6e | 74 73 20 63 61 6e 20 62 |statemen|ts can b|
|000028b0| 65 20 6d 6f 64 69 66 69 | 65 64 20 62 79 20 70 75 |e modifi|ed by pu|
|000028c0| 74 74 69 6e 67 20 61 20 | 70 72 6f 70 65 72 74 79 |tting a |property|
|000028d0| 20 6f 6e 20 74 68 65 20 | 63 6f 6d 6d 61 6e 64 20 | on the |command |
|000028e0| 6f 72 20 6e 65 77 20 6f | 6e 65 73 0a 64 65 66 69 |or new o|nes.defi|
|000028f0| 6e 65 64 20 77 69 74 68 | 20 60 64 65 66 69 6e 65 |ned with| `define|
|00002900| 2d 73 68 2d 73 6b 65 6c | 65 74 6f 6e 27 2e 20 20 |-sh-skel|eton'. |
|00002910| 46 6f 72 20 65 78 61 6d | 70 6c 65 0a 0a 20 20 20 |For exam|ple.. |
|00002920| 20 28 70 75 74 20 27 73 | 68 2d 75 6e 74 69 6c 20 | (put 's|h-until |
|00002930| 27 6b 73 68 20 27 28 28 | 29 20 5c 22 75 6e 74 69 |'ksh '((|) \"unti|
|00002940| 6c 20 5c 22 20 5f 20 5c | 5c 6e 20 3e 20 5c 22 64 |l \" _ \|\n > \"d|
|00002950| 6f 5c 22 20 5c 5c 6e 20 | 5c 22 64 6f 6e 65 5c 22 |o\" \\n |\"done\"|
|00002960| 29 29 0a 6f 72 0a 20 20 | 20 20 28 70 75 74 20 27 |)).or. | (put '|
|00002970| 73 68 2d 69 66 20 27 73 | 6d 75 73 68 20 27 28 5c |sh-if 's|mush '(\|
|00002980| 22 57 68 61 74 3f 20 5c | 22 20 5c 22 49 66 20 79 |"What? \|" \"If y|
|00002990| 61 20 67 6f 74 20 28 20 | 5c 22 20 73 74 72 20 5c |a got ( |\" str \|
|000029a0| 22 20 29 20 79 61 20 62 | 65 74 74 61 20 7b 20 5c |" ) ya b|etta { \|
|000029b0| 22 20 5f 20 5c 22 20 7d | 5c 22 29 29 0a 0a 77 68 |" _ \" }|\"))..wh|
|000029c0| 65 72 65 20 60 73 68 2d | 75 6e 74 69 6c 27 20 6f |ere `sh-|until' o|
|000029d0| 72 20 60 73 68 2d 69 66 | 27 20 68 61 76 65 20 62 |r `sh-if|' have b|
|000029e0| 65 65 6e 20 6f 72 20 77 | 69 6c 6c 20 62 65 20 64 |een or w|ill be d|
|000029f0| 65 66 69 6e 65 64 20 62 | 79 20 60 64 65 66 69 6e |efined b|y `defin|
|00002a00| 65 2d 73 68 2d 73 6b 65 | 6c 65 74 6f 6e 27 2e 0a |e-sh-ske|leton'..|
|00002a10| 0a 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 63 |.The fol|lowing c|
|00002a20| 6f 6d 6d 61 6e 64 73 20 | 61 72 65 20 61 76 61 69 |ommands |are avai|
|00002a30| 6c 61 62 6c 65 2c 20 62 | 61 73 65 64 20 6f 6e 20 |lable, b|ased on |
|00002a40| 74 68 65 20 63 75 72 72 | 65 6e 74 20 73 68 65 6c |the curr|ent shel|
|00002a50| 6c 27 73 20 73 79 6e 74 | 61 78 3a 0a 0a 5c 5c 5b |l's synt|ax:..\\[|
|00002a60| 73 68 2d 63 61 73 65 5d | 09 20 63 61 73 65 20 73 |sh-case]|. case s|
|00002a70| 74 61 74 65 6d 65 6e 74 | 0a 5c 5c 5b 73 68 2d 66 |tatement|.\\[sh-f|
|00002a80| 6f 72 5d 09 20 66 6f 72 | 20 6c 6f 6f 70 0a 5c 5c |or]. for| loop.\\|
|00002a90| 5b 73 68 2d 66 75 6e 63 | 74 69 6f 6e 5d 09 20 66 |[sh-func|tion]. f|
|00002aa0| 75 6e 63 74 69 6f 6e 20 | 64 65 66 69 6e 69 74 69 |unction |definiti|
|00002ab0| 6f 6e 0a 5c 5c 5b 73 68 | 2d 69 66 5d 09 20 69 66 |on.\\[sh|-if]. if|
|00002ac0| 20 73 74 61 74 65 6d 65 | 6e 74 0a 5c 5c 5b 73 68 | stateme|nt.\\[sh|
|00002ad0| 2d 69 6e 64 65 78 65 64 | 2d 6c 6f 6f 70 5d 09 20 |-indexed|-loop]. |
|00002ae0| 69 6e 64 65 78 65 64 20 | 6c 6f 6f 70 20 66 72 6f |indexed |loop fro|
|00002af0| 6d 20 31 20 74 6f 20 6e | 0a 5c 5c 5b 73 68 2d 73 |m 1 to n|.\\[sh-s|
|00002b00| 65 6c 65 63 74 5d 09 20 | 73 65 6c 65 63 74 20 73 |elect]. |select s|
|00002b10| 74 61 74 65 6d 65 6e 74 | 0a 5c 5c 5b 73 68 2d 75 |tatement|.\\[sh-u|
|00002b20| 6e 74 69 6c 5d 09 20 75 | 6e 74 69 6c 20 6c 6f 6f |ntil]. u|ntil loo|
|00002b30| 70 0a 5c 5c 5b 73 68 2d | 77 68 69 6c 65 5d 09 20 |p.\\[sh-|while]. |
|00002b40| 77 68 69 6c 65 20 6c 6f | 6f 70 0a 0a 5c 5c 5b 62 |while lo|op..\\[b|
|00002b50| 61 63 6b 77 61 72 64 2d | 64 65 6c 65 74 65 2d 63 |ackward-|delete-c|
|00002b60| 68 61 72 2d 75 6e 74 61 | 62 69 66 79 5d 09 20 44 |har-unta|bify]. D|
|00002b70| 65 6c 65 74 65 20 62 61 | 63 6b 77 61 72 64 20 6f |elete ba|ckward o|
|00002b80| 6e 65 20 70 6f 73 69 74 | 69 6f 6e 2c 20 65 76 65 |ne posit|ion, eve|
|00002b90| 6e 20 69 66 20 69 74 20 | 77 61 73 20 61 20 74 61 |n if it |was a ta|
|00002ba0| 62 2e 0a 5c 5c 5b 73 68 | 2d 6e 65 77 6c 69 6e 65 |b..\\[sh|-newline|
|00002bb0| 2d 61 6e 64 2d 69 6e 64 | 65 6e 74 5d 09 20 44 65 |-and-ind|ent]. De|
|00002bc0| 6c 65 74 65 20 75 6e 71 | 75 6f 74 65 64 20 73 70 |lete unq|uoted sp|
|00002bd0| 61 63 65 20 61 6e 64 20 | 69 6e 64 65 6e 74 20 6e |ace and |indent n|
|00002be0| 65 77 20 6c 69 6e 65 20 | 73 61 6d 65 20 61 73 20 |ew line |same as |
|00002bf0| 74 68 69 73 20 6f 6e 65 | 2e 0a 5c 5c 5b 73 68 2d |this one|..\\[sh-|
|00002c00| 65 6e 64 2d 6f 66 2d 63 | 6f 6d 6d 61 6e 64 5d 09 |end-of-c|ommand].|
|00002c10| 20 47 6f 20 74 6f 20 65 | 6e 64 20 6f 66 20 73 75 | Go to e|nd of su|
|00002c20| 63 63 65 73 73 69 76 65 | 20 63 6f 6d 6d 61 6e 64 |ccessive| command|
|00002c30| 73 2e 0a 5c 5c 5b 73 68 | 2d 62 65 67 69 6e 6e 69 |s..\\[sh|-beginni|
|00002c40| 6e 67 2d 6f 66 2d 63 6f | 6d 6d 61 6e 64 5d 09 20 |ng-of-co|mmand]. |
|00002c50| 47 6f 20 74 6f 20 62 65 | 67 69 6e 6e 69 6e 67 20 |Go to be|ginning |
|00002c60| 6f 66 20 73 75 63 63 65 | 73 73 69 76 65 20 63 6f |of succe|ssive co|
|00002c70| 6d 6d 61 6e 64 73 2e 0a | 5c 5c 5b 73 68 2d 73 65 |mmands..|\\[sh-se|
|00002c80| 74 2d 73 68 65 6c 6c 5d | 09 20 53 65 74 20 74 68 |t-shell]|. Set th|
|00002c90| 69 73 20 62 75 66 66 65 | 72 27 73 20 73 68 65 6c |is buffe|r's shel|
|00002ca0| 6c 2c 20 61 6e 64 20 6d | 61 79 62 65 20 69 74 73 |l, and m|aybe its|
|00002cb0| 20 6d 61 67 69 63 20 6e | 75 6d 62 65 72 2e 0a 5c | magic n|umber..\|
|00002cc0| 5c 5b 73 68 2d 6d 61 6e | 75 61 6c 2d 65 6e 74 72 |\[sh-man|ual-entr|
|00002cd0| 79 5d 09 20 44 69 73 70 | 6c 61 79 20 74 68 65 20 |y]. Disp|lay the |
|00002ce0| 55 6e 69 78 20 6d 61 6e | 75 61 6c 20 65 6e 74 72 |Unix man|ual entr|
|00002cf0| 79 20 66 6f 72 20 74 68 | 65 20 63 75 72 72 65 6e |y for th|e curren|
|00002d00| 74 20 63 6f 6d 6d 61 6e | 64 20 6f 72 20 73 68 65 |t comman|d or she|
|00002d10| 6c 6c 2e 0a 0a 5c 5c 5b | 73 68 2d 71 75 65 72 79 |ll...\\[|sh-query|
|00002d20| 2d 66 6f 72 2d 76 61 72 | 69 61 62 6c 65 5d 09 20 |-for-var|iable]. |
|00002d30| 55 6e 6c 65 73 73 20 71 | 75 6f 74 65 64 20 77 69 |Unless q|uoted wi|
|00002d40| 74 68 20 5c 5c 2c 20 71 | 75 65 72 79 20 66 6f 72 |th \\, q|uery for|
|00002d50| 20 61 20 76 61 72 69 61 | 62 6c 65 20 77 69 74 68 | a varia|ble with|
|00002d60| 20 63 6f 6d 70 6c 65 74 | 69 6f 6e 73 20 6f 66 66 | complet|ions off|
|00002d70| 65 72 65 64 2e 0a 5c 5c | 5b 73 68 2d 6d 61 79 62 |ered..\\|[sh-mayb|
|00002d80| 65 2d 68 65 72 65 2d 64 | 6f 63 75 6d 65 6e 74 5d |e-here-d|ocument]|
|00002d90| 09 20 57 69 74 68 6f 75 | 74 20 70 72 65 66 69 78 |. Withou|t prefix|
|00002da0| 2c 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 61 6e 20 75 |, follow|ing an u|
|00002db0| 6e 71 75 6f 74 65 64 20 | 3c 20 69 6e 73 65 72 74 |nquoted |< insert|
|00002dc0| 73 20 68 65 72 65 20 64 | 6f 63 75 6d 65 6e 74 2e |s here d|ocument.|
|00002dd0| 0a 7b 2c 20 28 2c 20 5b | 2c 20 27 2c 20 5c 22 2c |.{, (, [|, ', \",|
|00002de0| 20 60 0a 09 55 6e 6c 65 | 73 73 20 71 75 6f 74 65 | `..Unle|ss quote|
|00002df0| 64 20 77 69 74 68 20 5c | 5c 2c 20 69 6e 73 65 72 |d with \|\, inser|
|00002e00| 74 20 74 68 65 20 70 61 | 69 72 73 20 7b 7d 2c 20 |t the pa|irs {}, |
|00002e10| 28 29 2c 20 5b 5d 2c 20 | 6f 72 20 27 27 2c 20 5c |(), [], |or '', \|
|00002e20| 22 5c 22 2c 20 60 60 2e | 22 20 6e 69 6c 5d 29 0a |"\", ``.|" nil]).|
|00002e30| 28 64 65 66 61 6c 69 61 | 73 20 28 71 75 6f 74 65 |(defalia|s (quote|
|00002e40| 20 73 68 65 6c 6c 2d 73 | 63 72 69 70 74 2d 6d 6f | shell-s|cript-mo|
|00002e50| 64 65 29 20 28 71 75 6f | 74 65 20 73 68 2d 6d 6f |de) (quo|te sh-mo|
|00002e60| 64 65 29 29 0a 28 64 65 | 66 61 6c 69 61 73 20 27 |de)).(de|falias '|
|00002e70| 64 65 66 69 6e 65 2d 73 | 68 2d 73 6b 65 6c 65 74 |define-s|h-skelet|
|00002e80| 6f 6e 20 27 28 6d 61 63 | 72 6f 20 2e 20 23 5b 28 |on '(mac|ro . #[(|
|00002e90| 63 6f 6d 6d 61 6e 64 20 | 64 6f 63 75 6d 65 6e 74 |command |document|
|00002ea0| 61 74 69 6f 6e 20 26 72 | 65 73 74 20 64 65 66 69 |ation &r|est defi|
|00002eb0| 6e 69 74 69 6f 6e 73 29 | 20 22 08 3b 84 0b 00 08 |nitions)| ".;....|
|00002ec0| 09 42 11 c2 10 c3 c4 21 | 88 c5 c6 c1 c7 09 44 44 |.B.....!|......DD|
|00002ed0| 43 c8 c1 c9 ca cb cc c7 | 0e 0d 44 ce 42 42 45 cf |C.......|..D.BBE.|
|00002ee0| c7 0e 0d 44 d0 d1 d2 cc | c7 0e 0d 44 d3 42 42 d4 |...D....|...D.BB.|
|00002ef0| 42 42 42 46 45 d5 42 42 | 42 45 cf c7 0e 0d 44 d6 |BBBFE.BB|BE....D.|
|00002f00| c7 cc c7 0e 0d 44 d7 42 | 42 44 46 d8 0e 0d d9 08 |.....D.B|BDF.....|
|00002f10| da db c9 cc c7 0e 0d 44 | dc 42 42 dd de c7 0e 0d |.......D|.BB.....|
|00002f20| 44 df 42 42 42 45 44 af | 06 46 87 22 20 5b 64 6f |D.BBBED.|.F." [do|
|00002f30| 63 75 6d 65 6e 74 61 74 | 69 6f 6e 20 64 65 66 69 |cumentat|ion defi|
|00002f40| 6e 69 74 69 6f 6e 73 20 | 22 22 20 72 65 71 75 69 |nitions |"" requi|
|00002f50| 72 65 20 62 61 63 6b 71 | 75 6f 74 65 20 70 72 6f |re backq|uote pro|
|00002f60| 67 6e 20 6c 65 74 20 71 | 75 6f 74 65 20 77 68 69 |gn let q|uote whi|
|00002f70| 6c 65 20 6f 72 20 61 6e | 64 20 28 6e 6f 74 20 28 |le or an|d (not (|
|00002f80| 69 66 20 28 62 6f 75 6e | 64 70 20 28 71 75 6f 74 |if (boun|dp (quot|
|00002f90| 65 20 73 6b 65 6c 65 74 | 6f 6e 2d 64 65 62 75 67 |e skelet|on-debug|
|00002fa0| 29 29 20 73 6b 65 6c 65 | 74 6f 6e 2d 64 65 62 75 |)) skele|ton-debu|
|00002fb0| 67 29 29 20 67 65 74 20 | 63 6f 6d 6d 61 6e 64 20 |g)) get |command |
|00002fc0| 28 28 63 61 72 20 28 63 | 61 72 20 64 65 66 69 6e |((car (c|ar defin|
|00002fd0| 69 74 69 6f 6e 73 29 29 | 29 20 70 75 74 20 28 63 |itions))|) put (c|
|00002fe0| 61 72 20 28 63 61 72 20 | 64 65 66 69 6e 69 74 69 |ar (car |definiti|
|00002ff0| 6f 6e 73 29 29 20 69 66 | 20 28 73 79 6d 62 6f 6c |ons)) if| (symbol|
|00003000| 70 20 28 63 64 72 20 28 | 63 61 72 20 64 65 66 69 |p (cdr (|car defi|
|00003010| 6e 69 74 69 6f 6e 73 29 | 29 29 20 28 28 63 64 72 |nitions)|)) ((cdr|
|00003020| 20 28 63 61 72 20 64 65 | 66 69 6e 69 74 69 6f 6e | (car de|finition|
|00003030| 73 29 29 29 20 28 28 63 | 64 72 20 28 63 61 72 20 |s))) ((c|dr (car |
|00003040| 64 65 66 69 6e 69 74 69 | 6f 6e 73 29 29 29 20 28 |definiti|ons))) (|
|00003050| 28 73 65 74 71 20 64 65 | 66 69 6e 69 74 69 6f 6e |(setq de|finition|
|00003060| 73 20 28 63 64 72 20 64 | 65 66 69 6e 69 74 69 6f |s (cdr d|efinitio|
|00003070| 6e 73 29 29 29 20 28 71 | 75 6f 74 65 20 6d 65 6e |ns))) (q|uote men|
|00003080| 75 2d 65 6e 61 62 6c 65 | 29 20 28 73 68 2d 73 68 |u-enable|) (sh-sh|
|00003090| 65 6c 6c 29 20 64 65 66 | 75 6e 20 6e 69 6c 20 28 |ell) def|un nil (|
|000030a0| 69 6e 74 65 72 61 63 74 | 69 76 65 29 20 73 6b 65 |interact|ive) ske|
|000030b0| 6c 65 74 6f 6e 2d 69 6e | 73 65 72 74 20 28 73 68 |leton-in|sert (sh|
|000030c0| 2d 73 68 65 6c 6c 29 20 | 65 72 72 6f 72 20 22 25 |-shell) |error "%|
|000030d0| 73 20 73 74 61 74 65 6d | 65 6e 74 20 73 79 6e 74 |s statem|ent synt|
|000030e0| 61 78 20 6e 6f 74 20 64 | 65 66 69 6e 65 64 20 66 |ax not d|efined f|
|000030f0| 6f 72 20 73 68 65 6c 6c | 20 25 73 2e 22 20 28 73 |or shell| %s." (s|
|00003100| 68 2d 73 68 65 6c 6c 29 | 5d 20 31 35 20 22 5c 0a |h-shell)|] 15 "\.|
|00003110| 44 65 66 69 6e 65 20 43 | 4f 4d 4d 41 4e 44 20 77 |Define C|OMMAND w|
|00003120| 69 74 68 20 5b 44 4f 43 | 53 54 52 49 4e 47 5d 20 |ith [DOC|STRING] |
|00003130| 74 6f 20 69 6e 73 65 72 | 74 20 73 74 61 74 65 6d |to inser|t statem|
|00003140| 65 6e 74 73 20 61 73 20 | 69 6e 20 44 45 46 49 4e |ents as |in DEFIN|
|00003150| 49 54 49 4f 4e 20 2e 2e | 2e 0a 50 72 69 6f 72 20 |ITION ..|..Prior |
|00003160| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 28 65 2e 67 |definiti|ons (e.g|
|00003170| 2e 20 66 72 6f 6d 20 7e | 2f 2e 65 6d 61 63 73 29 |. from ~|/.emacs)|
|00003180| 20 61 72 65 20 6d 61 69 | 6e 74 61 69 6e 65 64 2e | are mai|ntained.|
|00003190| 0a 45 61 63 68 20 64 65 | 66 69 6e 69 74 69 6f 6e |.Each de|finition|
|000031a0| 20 69 73 20 62 75 69 6c | 74 20 75 70 20 61 73 20 | is buil|t up as |
|000031b0| 28 53 48 45 4c 4c 20 50 | 52 4f 4d 50 54 20 45 4c |(SHELL P|ROMPT EL|
|000031c0| 45 4d 45 4e 54 20 2e 2e | 2e 29 2e 20 20 41 6c 74 |EMENT ..|.). Alt|
|000031d0| 65 72 6e 61 74 65 6c 79 | 0a 61 20 73 79 6e 6f 6e |ernately|.a synon|
|000031e0| 79 6d 20 64 65 66 69 6e | 69 74 69 6f 6e 20 63 61 |ym defin|ition ca|
|000031f0| 6e 20 62 65 20 28 53 48 | 45 4c 4c 20 2e 20 50 52 |n be (SH|ELL . PR|
|00003200| 45 56 49 4f 55 53 4c 59 | 2d 44 45 46 49 4e 45 44 |EVIOUSLY|-DEFINED|
|00003210| 2d 53 48 45 4c 4c 29 2e | 0a 0a 46 6f 72 20 74 68 |-SHELL).|..For th|
|00003220| 65 20 6d 65 61 6e 69 6e | 67 20 6f 66 20 28 50 52 |e meanin|g of (PR|
|00003230| 4f 4d 50 54 20 45 4c 45 | 4d 45 4e 54 20 2e 2e 2e |OMPT ELE|MENT ...|
|00003240| 29 20 73 65 65 20 60 73 | 6b 65 6c 65 74 6f 6e 2d |) see `s|keleton-|
|00003250| 69 6e 73 65 72 74 27 2e | 0a 45 61 63 68 20 44 45 |insert'.|.Each DE|
|00003260| 46 49 4e 49 54 49 4f 4e | 20 69 73 20 61 63 74 75 |FINITION| is actu|
|00003270| 61 6c 6c 79 20 73 74 6f | 72 65 64 20 61 73 0a 09 |ally sto|red as..|
|00003280| 28 70 75 74 20 43 4f 4d | 4d 41 4e 44 20 53 48 45 |(put COM|MAND SHE|
|00003290| 4c 4c 20 28 50 52 4f 4d | 50 54 20 45 4c 45 4d 45 |LL (PROM|PT ELEME|
|000032a0| 4e 54 20 2e 2e 2e 29 29 | 2c 0a 77 68 69 63 68 20 |NT ...))|,.which |
|000032b0| 79 6f 75 20 63 61 6e 20 | 61 6c 73 6f 20 64 6f 20 |you can |also do |
|000032c0| 79 6f 75 72 73 65 6c 66 | 2e 22 5d 29 29 0a 28 64 |yourself|."])).(d|
|000032d0| 65 66 61 6c 69 61 73 20 | 27 73 68 2d 69 6e 64 65 |efalias |'sh-inde|
|000032e0| 6e 74 2d 6c 69 6e 65 20 | 23 5b 6e 69 6c 20 22 8a |nt-line |#[nil ".|
|000032f0| c0 c1 21 88 c2 20 88 c3 | 5c 66 21 83 12 00 c5 82 |..!.. ..|\f!.....|
|00003300| 13 00 69 29 1e 06 8a 0e | 07 c8 3d 83 23 00 0e 06 |..i)....|..=.#...|
|00003310| 82 53 00 69 c2 20 88 69 | 57 83 39 00 6c 83 35 00 |.S.i. .i|W.9.l.5.|
|00003320| 0e 06 82 53 00 c5 82 53 | 00 6c 83 4b 00 0e 06 69 |...S...S|.l.K...i|
|00003330| 0e 09 a5 54 0e 09 5f 5d | 82 53 00 69 0e 09 a5 54 |...T.._]|.S.i...T|
|00003340| 0e 09 5f 6a 88 29 69 ca | 20 57 85 60 00 cb cc 77 |.._j.)i.| W.`...w|
|00003350| 29 87 22 20 5b 6c 69 6e | 65 2d 6d 6f 76 65 20 2d |)." [lin|e-move -|
|00003360| 31 20 62 61 63 6b 2d 74 | 6f 2d 69 6e 64 65 6e 74 |1 back-t|o-indent|
|00003370| 61 74 69 6f 6e 20 6c 6f | 6f 6b 69 6e 67 2d 61 74 |ation lo|oking-at|
|00003380| 20 63 6f 6d 6d 65 6e 74 | 2d 73 74 61 72 74 2d 73 | comment|-start-s|
|00003390| 6b 69 70 20 30 20 70 72 | 65 76 69 6f 75 73 20 74 |kip 0 pr|evious t|
|000033a0| 68 69 73 2d 63 6f 6d 6d | 61 6e 64 20 6e 65 77 6c |his-comm|and newl|
|000033b0| 69 6e 65 2d 61 6e 64 2d | 69 6e 64 65 6e 74 20 74 |ine-and-|indent t|
|000033c0| 61 62 2d 77 69 64 74 68 | 20 63 75 72 72 65 6e 74 |ab-width| current|
|000033d0| 2d 69 6e 64 65 6e 74 61 | 74 69 6f 6e 20 22 20 09 |-indenta|tion " .|
|000033e0| 22 20 6e 69 6c 5d 20 33 | 20 22 5c 0a 49 6e 64 65 |" nil] 3| "\.Inde|
|000033f0| 6e 74 20 61 73 20 66 61 | 72 20 61 73 20 70 72 65 |nt as fa|r as pre|
|00003400| 63 65 64 69 6e 67 20 6c | 69 6e 65 2c 20 74 68 65 |ceding l|ine, the|
|00003410| 6e 20 62 79 20 73 74 65 | 70 73 20 6f 66 20 60 74 |n by ste|ps of `t|
|00003420| 61 62 2d 77 69 64 74 68 | 27 2e 0a 49 66 20 70 72 |ab-width|'..If pr|
|00003430| 65 76 69 6f 75 73 20 6c | 69 6e 65 20 73 74 61 72 |evious l|ine star|
|00003440| 74 73 20 77 69 74 68 20 | 61 20 63 6f 6d 6d 65 6e |ts with |a commen|
|00003450| 74 2c 20 69 74 27 73 20 | 63 6f 6e 73 69 64 65 72 |t, it's |consider|
|00003460| 65 64 20 65 6d 70 74 79 | 2e 22 20 6e 69 6c 5d 29 |ed empty|." nil])|
|00003470| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 2d 72 |.(defali|as 'sh-r|
|00003480| 65 6d 65 6d 62 65 72 2d | 76 61 72 69 61 62 6c 65 |emember-|variable|
|00003490| 20 23 5b 28 76 61 72 29 | 20 22 08 47 09 57 84 13 | #[(var)| ".G.W..|
|000034a0| 00 c2 08 0b 5c 22 84 13 | 00 08 43 0b 42 13 08 87 |....\"..|..C.B...|
|000034b0| 22 20 5b 76 61 72 20 73 | 68 2d 72 65 6d 65 6d 62 |" [var s|h-rememb|
|000034c0| 65 72 2d 76 61 72 69 61 | 62 6c 65 2d 6d 69 6e 20 |er-varia|ble-min |
|000034d0| 61 73 73 6f 63 20 73 68 | 2d 76 61 72 69 61 62 6c |assoc sh|-variabl|
|000034e0| 65 73 5d 20 33 20 22 5c | 0a 4d 61 6b 65 20 56 41 |es] 3 "\|.Make VA|
|000034f0| 52 49 41 42 4c 45 20 61 | 76 61 69 6c 61 62 6c 65 |RIABLE a|vailable|
|00003500| 20 66 6f 72 20 66 75 74 | 75 72 65 20 63 6f 6d 70 | for fut|ure comp|
|00003510| 6c 65 74 69 6e 67 20 72 | 65 61 64 73 20 69 6e 20 |leting r|eads in |
|00003520| 74 68 69 73 20 62 75 66 | 66 65 72 2e 22 5d 29 0a |this buf|fer."]).|
|00003530| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 21 83 |(byte-co|de "..!.|
|00003540| 20 00 09 89 1a 83 1f 00 | c3 5c 6e 40 c4 c5 c6 5c | .......|.\n@...\|
|00003550| 6e 40 5c 22 4f 21 88 5c | 6e 41 89 12 84 5c 66 00 |n@\"O!.\|nA...\f.|
|00003560| 29 c0 87 22 20 5b 62 6f | 75 6e 64 70 20 70 72 6f |).." [bo|undp pro|
|00003570| 63 65 73 73 2d 65 6e 76 | 69 72 6f 6e 6d 65 6e 74 |cess-env|ironment|
|00003580| 20 6c 20 73 68 2d 72 65 | 6d 65 6d 62 65 72 2d 76 | l sh-re|member-v|
|00003590| 61 72 69 61 62 6c 65 20 | 30 20 73 74 72 69 6e 67 |ariable |0 string|
|000035a0| 2d 6d 61 74 63 68 20 22 | 3d 22 5d 20 37 29 0a 28 |-match "|="] 7).(|
|000035b0| 64 65 66 61 6c 69 61 73 | 20 27 73 68 2d 71 75 6f |defalias| 'sh-quo|
|000035c0| 74 65 64 2d 70 20 23 5b | 6e 69 6c 20 22 60 8a c0 |ted-p #[|nil "`..|
|000035d0| c1 78 88 60 29 5a c2 a6 | c3 3d 87 22 20 5b 22 5c |.x.`)Z..|.=." ["\|
|000035e0| 5c 5c 5c 22 20 6e 69 6c | 20 32 20 31 5d 20 33 20 |\\\" nil| 2 1] 3 |
|000035f0| 22 5c 0a 49 73 20 70 6f | 69 6e 74 20 70 72 65 63 |"\.Is po|int prec|
|00003600| 65 64 65 64 20 62 79 20 | 61 6e 20 6f 64 64 20 6e |eded by |an odd n|
|00003610| 75 6d 62 65 72 20 6f 66 | 20 62 61 63 6b 73 6c 61 |umber of| backsla|
|00003620| 73 68 65 73 3f 22 5d 29 | 0a 28 64 65 66 61 6c 69 |shes?"])|.(defali|
|00003630| 61 73 20 27 73 68 2d 65 | 78 65 63 75 74 61 62 6c |as 'sh-e|xecutabl|
|00003640| 65 20 23 5b 28 63 6f 6d | 6d 61 6e 64 29 20 22 60 |e #[(com|mand) "`|
|00003650| c0 20 c1 89 1a 1b 18 1c | c5 c6 c1 c7 c1 c8 c9 0e |. ......|........|
|00003660| 5c 6e 50 26 06 88 60 5c | 66 62 88 14 cb 0e 5c 66 |\nP&..`\|fb....\f|
|00003670| 21 85 2e 00 5c 66 cd 95 | 3d 85 2e 00 ce 94 ce 95 |!...\f..|=.......|
|00003680| 7b 60 5c 66 7c 88 cf 08 | 21 88 2c 87 22 20 5b 62 |{`\f|...|!.,." [b|
|00003690| 75 66 66 65 72 2d 6d 6f | 64 69 66 69 65 64 2d 70 |uffer-mo|dified-p|
|000036a0| 20 6e 69 6c 20 61 66 74 | 65 72 2d 63 68 61 6e 67 | nil aft|er-chang|
|000036b0| 65 2d 66 75 6e 63 74 69 | 6f 6e 20 62 75 66 66 65 |e-functi|on buffe|
|000036c0| 72 2d 72 65 61 64 2d 6f | 6e 6c 79 20 70 6f 69 6e |r-read-o|nly poin|
|000036d0| 74 20 63 61 6c 6c 2d 70 | 72 6f 63 65 73 73 20 22 |t call-p|rocess "|
|000036e0| 73 68 22 20 74 20 22 2d | 63 22 20 22 74 79 70 65 |sh" t "-|c" "type|
|000036f0| 20 22 20 63 6f 6d 6d 61 | 6e 64 20 6c 6f 6f 6b 69 | " comma|nd looki|
|00003700| 6e 67 2d 61 74 20 73 68 | 2d 65 78 65 63 75 74 61 |ng-at sh|-executa|
|00003710| 62 6c 65 20 30 20 31 20 | 73 65 74 2d 62 75 66 66 |ble 0 1 |set-buff|
|00003720| 65 72 2d 6d 6f 64 69 66 | 69 65 64 2d 70 5d 20 38 |er-modif|ied-p] 8|
|00003730| 20 22 5c 0a 49 66 20 43 | 4f 4d 4d 41 4e 44 20 69 | "\.If C|OMMAND i|
|00003740| 73 20 61 6e 20 65 78 65 | 63 75 74 61 62 6c 65 20 |s an exe|cutable |
|00003750| 69 6e 20 24 50 41 54 48 | 20 69 74 73 20 66 75 6c |in $PATH| its ful|
|00003760| 6c 20 6e 61 6d 65 20 69 | 73 20 72 65 74 75 72 6e |l name i|s return|
|00003770| 65 64 2e 20 20 45 6c 73 | 65 20 6e 69 6c 2e 22 5d |ed. Els|e nil."]|
|00003780| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 68 2d |).(defal|ias 'sh-|
|00003790| 63 68 6d 6f 64 20 23 5b | 6e 69 6c 20 22 08 85 11 |chmod #[|nil "...|
|000037a0| 00 c1 5c 6e 21 86 11 00 | c3 c4 08 c5 5c 6e 52 21 |..\n!...|....\nR!|
|000037b0| 87 22 20 5b 73 68 2d 63 | 68 6d 6f 64 2d 61 72 67 |." [sh-c|hmod-arg|
|000037c0| 75 6d 65 6e 74 20 66 69 | 6c 65 2d 65 78 65 63 75 |ument fi|le-execu|
|000037d0| 74 61 62 6c 65 2d 70 20 | 62 75 66 66 65 72 2d 66 |table-p |buffer-f|
|000037e0| 69 6c 65 2d 6e 61 6d 65 | 20 73 68 65 6c 6c 2d 63 |ile-name| shell-c|
|000037f0| 6f 6d 6d 61 6e 64 20 22 | 63 68 6d 6f 64 20 22 20 |ommand "|chmod " |
|00003800| 22 20 22 5d 20 35 20 22 | 5c 0a 54 68 69 73 20 67 |" "] 5 "|\.This g|
|00003810| 65 74 73 20 63 61 6c 6c | 65 64 20 61 66 74 65 72 |ets call|ed after|
|00003820| 20 73 61 76 69 6e 67 20 | 61 20 66 69 6c 65 20 74 | saving |a file t|
|00003830| 6f 20 61 73 73 75 72 65 | 20 74 68 61 74 20 69 74 |o assure| that it|
|00003840| 20 62 65 20 65 78 65 63 | 75 74 61 62 6c 65 2e 0a | be exec|utable..|
|00003850| 59 6f 75 20 63 61 6e 20 | 73 65 74 20 74 68 65 20 |You can |set the |
|00003860| 61 62 73 6f 6c 75 74 65 | 20 6f 72 20 72 65 6c 61 |absolute| or rela|
|00003870| 74 69 76 65 20 6d 6f 64 | 65 20 77 69 74 68 20 60 |tive mod|e with `|
|00003880| 73 68 2d 63 68 6d 6f 64 | 2d 61 72 67 75 6d 65 6e |sh-chmod|-argumen|
|00003890| 74 27 2e 22 5d 29 0a 28 | 62 79 74 65 2d 63 6f 64 |t'."]).(|byte-cod|
|000038a0| 65 20 22 c0 19 c2 c3 21 | 83 5c 66 00 0b 84 14 00 |e "....!|.\f.....|
|000038b0| c4 09 40 40 4e 84 2d 00 | c5 c4 09 40 40 09 40 41 |..@@N.-.|...@@.@A|
|000038c0| 39 83 28 00 c4 09 40 41 | 4e 82 2b 00 09 40 41 23 |9.(...@A|N.+..@A#|
|000038d0| 88 09 41 89 11 84 02 00 | 29 c5 c4 c6 c7 23 87 22 |..A.....|)....#."|
|000038e0| 20 5b 28 28 73 68 20 22 | 65 78 70 72 65 73 73 69 | [((sh "|expressi|
|000038f0| 6f 6e 3a 20 22 20 22 63 | 61 73 65 20 22 20 73 74 |on: " "c|ase " st|
|00003900| 72 20 22 20 69 6e 22 20 | 6e 20 3e 20 28 72 65 61 |r " in" |n > (rea|
|00003910| 64 2d 73 74 72 69 6e 67 | 20 22 70 61 74 74 65 72 |d-string| "patter|
|00003920| 6e 3a 20 22 29 20 34 31 | 20 6e 20 3e 20 5f 20 6e |n: ") 41| n > _ n|
|00003930| 20 22 3b 3b 22 20 6e 20 | 28 22 6f 74 68 65 72 20 | ";;" n |("other |
|00003940| 70 61 74 74 65 72 6e 2c | 20 25 73 3a 20 22 20 3c |pattern,| %s: " <|
|00003950| 20 73 74 72 20 34 31 20 | 6e 20 3e 20 6e 20 22 3b | str 41 |n > n ";|
|00003960| 3b 22 20 6e 29 20 3c 20 | 22 2a 29 22 20 6e 20 3e |;" n) < |"*)" n >|
|00003970| 20 6e 20 72 65 73 75 6d | 65 3a 20 3c 20 3c 20 22 | n resum|e: < < "|
|00003980| 65 73 61 63 22 29 20 28 | 6b 73 68 20 2e 20 73 68 |esac") (|ksh . sh|
|00003990| 29 20 28 62 61 73 68 20 | 2e 20 73 68 29 20 28 63 |) (bash |. sh) (c|
|000039a0| 73 68 20 22 65 78 70 72 | 65 73 73 69 6f 6e 3a 20 |sh "expr|ession: |
|000039b0| 22 20 22 73 77 69 74 63 | 68 28 20 22 20 73 74 72 |" "switc|h( " str|
|000039c0| 20 22 20 29 22 20 6e 20 | 3e 20 22 63 61 73 65 20 | " )" n |> "case |
|000039d0| 22 20 28 72 65 61 64 2d | 73 74 72 69 6e 67 20 22 |" (read-|string "|
|000039e0| 70 61 74 74 65 72 6e 3a | 20 22 29 20 35 38 20 6e |pattern:| ") 58 n|
|000039f0| 20 3e 20 5f 20 6e 20 22 | 62 72 65 61 6b 73 77 22 | > _ n "|breaksw"|
|00003a00| 20 6e 20 28 22 6f 74 68 | 65 72 20 70 61 74 74 65 | n ("oth|er patte|
|00003a10| 72 6e 2c 20 25 73 3a 20 | 22 20 3c 20 22 63 61 73 |rn, %s: |" < "cas|
|00003a20| 65 20 22 20 73 74 72 20 | 35 38 20 6e 20 3e 20 6e |e " str |58 n > n|
|00003a30| 20 22 62 72 65 61 6b 73 | 77 22 20 6e 29 20 3c 20 | "breaks|w" n) < |
|00003a40| 22 64 65 66 61 75 6c 74 | 3a 22 20 6e 20 3e 20 6e |"default|:" n > n|
|00003a50| 20 72 65 73 75 6d 65 3a | 20 3c 20 3c 20 22 65 6e | resume:| < < "en|
|00003a60| 64 73 77 22 29 20 28 74 | 63 73 68 20 2e 20 63 73 |dsw") (t|csh . cs|
|00003a70| 68 29 29 20 64 65 66 69 | 6e 69 74 69 6f 6e 73 20 |h)) defi|nitions |
|00003a80| 62 6f 75 6e 64 70 20 73 | 6b 65 6c 65 74 6f 6e 2d |boundp s|keleton-|
|00003a90| 64 65 62 75 67 20 73 68 | 2d 63 61 73 65 20 70 75 |debug sh|-case pu|
|00003aa0| 74 20 6d 65 6e 75 2d 65 | 6e 61 62 6c 65 20 28 67 |t menu-e|nable (g|
|00003ab0| 65 74 20 28 71 75 6f 74 | 65 20 73 68 2d 63 61 73 |et (quot|e sh-cas|
|00003ac0| 65 29 20 73 68 2d 73 68 | 65 6c 6c 29 5d 20 36 29 |e) sh-sh|ell)] 6)|
|00003ad0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 2d 63 |.(defali|as 'sh-c|
|00003ae0| 61 73 65 20 23 5b 6e 69 | 6c 20 22 c0 c1 5c 6e 4e |ase #[ni|l "..\nN|
|00003af0| 86 5c 66 00 c3 c4 c1 5c | 6e 23 21 87 22 20 5b 73 |.\f....\|n#!." [s|
|00003b00| 6b 65 6c 65 74 6f 6e 2d | 69 6e 73 65 72 74 20 73 |keleton-|insert s|
|00003b10| 68 2d 63 61 73 65 20 73 | 68 2d 73 68 65 6c 6c 20 |h-case s|h-shell |
|00003b20| 65 72 72 6f 72 20 22 25 | 73 20 73 74 61 74 65 6d |error "%|s statem|
|00003b30| 65 6e 74 20 73 79 6e 74 | 61 78 20 6e 6f 74 20 64 |ent synt|ax not d|
|00003b40| 65 66 69 6e 65 64 20 66 | 6f 72 20 73 68 65 6c 6c |efined f|or shell|
|00003b50| 20 25 73 2e 22 5d 20 35 | 20 22 5c 0a 49 6e 73 65 | %s."] 5| "\.Inse|
|00003b60| 72 74 20 61 20 63 61 73 | 65 2f 73 77 69 74 63 68 |rt a cas|e/switch|
|00003b70| 20 73 74 61 74 65 6d 65 | 6e 74 20 69 6e 20 74 68 | stateme|nt in th|
|00003b80| 65 20 63 75 72 72 65 6e | 74 20 73 68 65 6c 6c 27 |e curren|t shell'|
|00003b90| 73 20 73 79 6e 74 61 78 | 2e 22 20 6e 69 6c 5d 29 |s syntax|." nil])|
|00003ba0| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 19 c2 |.(byte-c|ode "...|
|00003bb0| c3 21 83 5c 66 00 0b 84 | 14 00 c4 09 40 40 4e 84 |.!.\f...|....@@N.|
|00003bc0| 2d 00 c5 c4 09 40 40 09 | 40 41 39 83 28 00 c4 09 |-....@@.|@A9.(...|
|00003bd0| 40 41 4e 82 2b 00 09 40 | 41 23 88 09 41 89 11 84 |@AN.+..@|A#..A...|
|00003be0| 02 00 29 c5 c4 c6 c7 23 | 87 22 20 5b 28 28 73 68 |..)....#|." [((sh|
|00003bf0| 20 22 49 6e 64 65 78 20 | 76 61 72 69 61 62 6c 65 | "Index |variable|
|00003c00| 3a 20 22 20 22 66 6f 72 | 20 22 20 73 74 72 20 22 |: " "for| " str "|
|00003c10| 20 69 6e 20 22 20 5f 20 | 22 3b 20 64 6f 22 20 6e | in " _ |"; do" n|
|00003c20| 20 3e 20 33 36 20 28 73 | 68 2d 72 65 6d 65 6d 62 | > 36 (s|h-rememb|
|00003c30| 65 72 2d 76 61 72 69 61 | 62 6c 65 20 73 74 72 29 |er-varia|ble str)|
|00003c40| 20 6e 20 3c 20 22 64 6f | 6e 65 22 29 20 28 6b 73 | n < "do|ne") (ks|
|00003c50| 68 20 2e 20 73 68 29 20 | 28 62 61 73 68 20 2e 20 |h . sh) |(bash . |
|00003c60| 73 68 29 20 28 63 73 68 | 20 22 49 6e 64 65 78 20 |sh) (csh| "Index |
|00003c70| 76 61 72 69 61 62 6c 65 | 3a 20 22 20 22 66 6f 72 |variable|: " "for|
|00003c80| 65 61 63 68 20 22 20 73 | 74 72 20 22 20 28 20 22 |each " s|tr " ( "|
|00003c90| 20 5f 20 22 20 29 22 20 | 6e 20 3e 20 33 36 20 28 | _ " )" |n > 36 (|
|00003ca0| 73 68 2d 72 65 6d 65 6d | 62 65 72 2d 76 61 72 69 |sh-remem|ber-vari|
|00003cb0| 61 62 6c 65 20 73 74 72 | 29 20 6e 20 3c 20 22 65 |able str|) n < "e|
|00003cc0| 6e 64 22 29 20 28 74 63 | 73 68 20 2e 20 63 73 68 |nd") (tc|sh . csh|
|00003cd0| 29 29 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 62 |)) defin|itions b|
|00003ce0| 6f 75 6e 64 70 20 73 6b | 65 6c 65 74 6f 6e 2d 64 |oundp sk|eleton-d|
|00003cf0| 65 62 75 67 20 73 68 2d | 66 6f 72 20 70 75 74 20 |ebug sh-|for put |
|00003d00| 6d 65 6e 75 2d 65 6e 61 | 62 6c 65 20 28 67 65 74 |menu-ena|ble (get|
|00003d10| 20 28 71 75 6f 74 65 20 | 73 68 2d 66 6f 72 29 20 | (quote |sh-for) |
|00003d20| 73 68 2d 73 68 65 6c 6c | 29 5d 20 36 29 0a 28 64 |sh-shell|)] 6).(d|
|00003d30| 65 66 61 6c 69 61 73 20 | 27 73 68 2d 66 6f 72 20 |efalias |'sh-for |
|00003d40| 23 5b 6e 69 6c 20 22 c0 | c1 5c 6e 4e 86 5c 66 00 |#[nil ".|.\nN.\f.|
|00003d50| c3 c4 c1 5c 6e 23 21 87 | 22 20 5b 73 6b 65 6c 65 |...\n#!.|" [skele|
|00003d60| 74 6f 6e 2d 69 6e 73 65 | 72 74 20 73 68 2d 66 6f |ton-inse|rt sh-fo|
|00003d70| 72 20 73 68 2d 73 68 65 | 6c 6c 20 65 72 72 6f 72 |r sh-she|ll error|
|00003d80| 20 22 25 73 20 73 74 61 | 74 65 6d 65 6e 74 20 73 | "%s sta|tement s|
|00003d90| 79 6e 74 61 78 20 6e 6f | 74 20 64 65 66 69 6e 65 |yntax no|t define|
|00003da0| 64 20 66 6f 72 20 73 68 | 65 6c 6c 20 25 73 2e 22 |d for sh|ell %s."|
|00003db0| 5d 20 35 20 22 5c 0a 49 | 6e 73 65 72 74 20 61 20 |] 5 "\.I|nsert a |
|00003dc0| 66 6f 72 20 6c 6f 6f 70 | 20 69 6e 20 74 68 65 20 |for loop| in the |
|00003dd0| 63 75 72 72 65 6e 74 20 | 73 68 65 6c 6c 27 73 20 |current |shell's |
|00003de0| 73 79 6e 74 61 78 2e 22 | 20 6e 69 6c 5d 29 0a 28 |syntax."| nil]).(|
|00003df0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 19 c2 c3 21 |byte-cod|e "....!|
|00003e00| 83 5c 66 00 0b 84 14 00 | c4 09 40 40 4e 84 2d 00 |.\f.....|..@@N.-.|
|00003e10| c5 c4 09 40 40 09 40 41 | 39 83 28 00 c4 09 40 41 |...@@.@A|9.(...@A|
|00003e20| 4e 82 2b 00 09 40 41 23 | 88 09 41 89 11 84 02 00 |N.+..@A#|..A.....|
|00003e30| 29 c5 c4 c6 c7 23 87 22 | 20 5b 28 28 73 68 20 22 |)....#."| [((sh "|
|00003e40| 49 6e 64 65 78 20 76 61 | 72 69 61 62 6c 65 3a 20 |Index va|riable: |
|00003e50| 22 20 73 74 72 20 22 3d | 31 22 20 6e 20 22 77 68 |" str "=|1" n "wh|
|00003e60| 69 6c 65 20 5b 20 24 22 | 20 73 74 72 20 22 20 2d |ile [ $"| str " -|
|00003e70| 6c 65 20 22 20 28 72 65 | 61 64 2d 73 74 72 69 6e |le " (re|ad-strin|
|00003e80| 67 20 22 75 70 70 65 72 | 20 6c 69 6d 69 74 3a 20 |g "upper| limit: |
|00003e90| 22 29 20 22 20 5d 3b 20 | 64 6f 22 20 6e 20 3e 20 |") " ]; |do" n > |
|00003ea0| 5f 20 33 36 20 73 74 72 | 20 6e 20 73 74 72 20 36 |_ 36 str| n str 6|
|00003eb0| 31 20 28 73 68 2d 61 64 | 64 20 28 73 68 2d 72 65 |1 (sh-ad|d (sh-re|
|00003ec0| 6d 65 6d 62 65 72 2d 76 | 61 72 69 61 62 6c 65 20 |member-v|ariable |
|00003ed0| 73 74 72 29 20 31 29 20 | 6e 20 3c 20 22 64 6f 6e |str) 1) |n < "don|
|00003ee0| 65 22 29 20 28 6b 73 68 | 20 2e 20 73 68 29 20 28 |e") (ksh| . sh) (|
|00003ef0| 62 61 73 68 20 2e 20 73 | 68 29 20 28 63 73 68 20 |bash . s|h) (csh |
|00003f00| 22 49 6e 64 65 78 20 76 | 61 72 69 61 62 6c 65 3a |"Index v|ariable:|
|00003f10| 20 22 20 22 40 20 22 20 | 73 74 72 20 22 20 3d 20 | " "@ " |str " = |
|00003f20| 31 22 20 6e 20 22 77 68 | 69 6c 65 28 20 24 22 20 |1" n "wh|ile( $" |
|00003f30| 73 74 72 20 22 20 3c 3d | 20 22 20 28 72 65 61 64 |str " <=| " (read|
|00003f40| 2d 73 74 72 69 6e 67 20 | 22 75 70 70 65 72 20 6c |-string |"upper l|
|00003f50| 69 6d 69 74 3a 20 22 29 | 20 22 20 29 22 20 6e 20 |imit: ")| " )" n |
|00003f60| 3e 20 5f 20 33 36 20 28 | 73 68 2d 72 65 6d 65 6d |> _ 36 (|sh-remem|
|00003f70| 62 65 72 2d 76 61 72 69 | 61 62 6c 65 20 73 74 72 |ber-vari|able str|
|00003f80| 29 20 6e 20 22 40 20 22 | 20 73 74 72 20 22 2b 2b |) n "@ "| str "++|
|00003f90| 22 20 6e 20 3c 20 22 65 | 6e 64 22 29 20 28 74 63 |" n < "e|nd") (tc|
|00003fa0| 73 68 20 2e 20 63 73 68 | 29 29 20 64 65 66 69 6e |sh . csh|)) defin|
|00003fb0| 69 74 69 6f 6e 73 20 62 | 6f 75 6e 64 70 20 73 6b |itions b|oundp sk|
|00003fc0| 65 6c 65 74 6f 6e 2d 64 | 65 62 75 67 20 73 68 2d |eleton-d|ebug sh-|
|00003fd0| 69 6e 64 65 78 65 64 2d | 6c 6f 6f 70 20 70 75 74 |indexed-|loop put|
|00003fe0| 20 6d 65 6e 75 2d 65 6e | 61 62 6c 65 20 28 67 65 | menu-en|able (ge|
|00003ff0| 74 20 28 71 75 6f 74 65 | 20 73 68 2d 69 6e 64 65 |t (quote| sh-inde|
|00004000| 78 65 64 2d 6c 6f 6f 70 | 29 20 73 68 2d 73 68 65 |xed-loop|) sh-she|
|00004010| 6c 6c 29 5d 20 36 29 0a | 28 64 65 66 61 6c 69 61 |ll)] 6).|(defalia|
|00004020| 73 20 27 73 68 2d 69 6e | 64 65 78 65 64 2d 6c 6f |s 'sh-in|dexed-lo|
|00004030| 6f 70 20 23 5b 6e 69 6c | 20 22 c0 c1 5c 6e 4e 86 |op #[nil| "..\nN.|
|00004040| 5c 66 00 c3 c4 c1 5c 6e | 23 21 87 22 20 5b 73 6b |\f....\n|#!." [sk|
|00004050| 65 6c 65 74 6f 6e 2d 69 | 6e 73 65 72 74 20 73 68 |eleton-i|nsert sh|
|00004060| 2d 69 6e 64 65 78 65 64 | 2d 6c 6f 6f 70 20 73 68 |-indexed|-loop sh|
|00004070| 2d 73 68 65 6c 6c 20 65 | 72 72 6f 72 20 22 25 73 |-shell e|rror "%s|
|00004080| 20 73 74 61 74 65 6d 65 | 6e 74 20 73 79 6e 74 61 | stateme|nt synta|
|00004090| 78 20 6e 6f 74 20 64 65 | 66 69 6e 65 64 20 66 6f |x not de|fined fo|
|000040a0| 72 20 73 68 65 6c 6c 20 | 25 73 2e 22 5d 20 35 20 |r shell |%s."] 5 |
|000040b0| 22 5c 0a 49 6e 73 65 72 | 74 20 61 6e 20 69 6e 64 |"\.Inser|t an ind|
|000040c0| 65 78 65 64 20 6c 6f 6f | 70 20 66 72 6f 6d 20 31 |exed loo|p from 1|
|000040d0| 20 74 6f 20 6e 20 69 6e | 20 74 68 65 20 63 75 72 | to n in| the cur|
|000040e0| 72 65 6e 74 20 73 68 65 | 6c 6c 27 73 20 73 79 6e |rent she|ll's syn|
|000040f0| 74 61 78 2e 22 20 6e 69 | 6c 5d 29 0a 28 64 65 66 |tax." ni|l]).(def|
|00004100| 61 6c 69 61 73 20 27 73 | 68 2d 61 64 64 20 23 5b |alias 's|h-add #[|
|00004110| 28 76 61 72 20 64 65 6c | 74 61 29 20 22 08 c1 57 |(var del|ta) "..W|
|00004120| 83 5c 6e 00 c2 82 0b 00 | c3 c4 08 21 50 10 c5 0e |.\n.....|...!P...|
|00004130| 06 c7 9e c8 5c 22 87 22 | 20 5b 64 65 6c 74 61 20 |....\"."| [delta |
|00004140| 30 20 22 20 2d 20 22 20 | 22 20 2b 20 22 20 61 62 |0 " - " |" + " ab|
|00004150| 73 20 73 6b 65 6c 65 74 | 6f 6e 2d 69 6e 73 65 72 |s skelet|on-inser|
|00004160| 74 20 73 68 2d 73 68 65 | 6c 6c 20 28 28 73 68 20 |t sh-she|ll ((sh |
|00004170| 22 60 65 78 70 72 20 24 | 22 20 76 61 72 20 64 65 |"`expr $|" var de|
|00004180| 6c 74 61 20 22 60 22 29 | 20 28 6b 73 68 20 22 24 |lta "`")| (ksh "$|
|00004190| 28 28 20 24 22 20 76 61 | 72 20 64 65 6c 74 61 20 |(( $" va|r delta |
|000041a0| 22 20 29 29 22 29 20 28 | 62 61 73 68 20 22 24 5b |" ))") (|bash "$[|
|000041b0| 20 24 22 20 76 61 72 20 | 64 65 6c 74 61 20 22 20 | $" var |delta " |
|000041c0| 5d 22 29 29 20 74 5d 20 | 33 20 22 5c 0a 49 6e 73 |]")) t] |3 "\.Ins|
|000041d0| 65 72 74 20 61 6e 20 61 | 64 64 69 74 69 6f 6e 20 |ert an a|ddition |
|000041e0| 6f 66 20 56 41 52 20 61 | 6e 64 20 70 72 65 66 69 |of VAR a|nd prefi|
|000041f0| 78 20 44 45 4c 54 41 20 | 66 6f 72 20 42 6f 75 72 |x DELTA |for Bour|
|00004200| 6e 65 20 74 79 70 65 20 | 73 68 65 6c 6c 73 2e 22 |ne type |shells."|
|00004210| 20 28 6c 69 73 74 20 28 | 73 68 2d 72 65 6d 65 6d | (list (|sh-remem|
|00004220| 62 65 72 2d 76 61 72 69 | 61 62 6c 65 20 28 63 6f |ber-vari|able (co|
|00004230| 6d 70 6c 65 74 69 6e 67 | 2d 72 65 61 64 20 22 56 |mpleting|-read "V|
|00004240| 61 72 69 61 62 6c 65 3a | 20 22 20 73 68 2d 76 61 |ariable:| " sh-va|
|00004250| 72 69 61 62 6c 65 73 20 | 28 6c 61 6d 62 64 61 20 |riables |(lambda |
|00004260| 28 65 6c 65 6d 65 6e 74 | 29 20 28 6f 72 20 28 6e |(element|) (or (n|
|00004270| 6f 74 20 28 63 64 72 20 | 65 6c 65 6d 65 6e 74 29 |ot (cdr |element)|
|00004280| 29 20 28 6d 65 6d 71 20 | 73 68 2d 73 68 65 6c 6c |) (memq |sh-shell|
|00004290| 20 28 63 64 72 20 65 6c | 65 6d 65 6e 74 29 29 29 | (cdr el|ement)))|
|000042a0| 29 29 29 20 28 70 72 65 | 66 69 78 2d 6e 75 6d 65 |))) (pre|fix-nume|
|000042b0| 72 69 63 2d 76 61 6c 75 | 65 20 63 75 72 72 65 6e |ric-valu|e curren|
|000042c0| 74 2d 70 72 65 66 69 78 | 2d 61 72 67 29 29 5d 29 |t-prefix|-arg))])|
|000042d0| 0a 28 62 79 74 65 2d 63 | 6f 64 65 20 22 c0 19 c2 |.(byte-c|ode "...|
|000042e0| c3 21 83 5c 66 00 0b 84 | 14 00 c4 09 40 40 4e 84 |.!.\f...|....@@N.|
|000042f0| 2d 00 c5 c4 09 40 40 09 | 40 41 39 83 28 00 c4 09 |-....@@.|@A9.(...|
|00004300| 40 41 4e 82 2b 00 09 40 | 41 23 88 09 41 89 11 84 |@AN.+..@|A#..A...|
|00004310| 02 00 29 c5 c4 c6 c7 23 | 87 22 20 5b 28 28 73 68 |..)....#|." [((sh|
|00004320| 20 6e 69 6c 20 22 28 29 | 20 7b 22 20 6e 20 3e 20 | nil "()| {" n > |
|00004330| 5f 20 6e 20 3c 20 22 7d | 22 29 20 28 6b 73 68 20 |_ n < "}|") (ksh |
|00004340| 22 6e 61 6d 65 3a 20 22 | 20 22 66 75 6e 63 74 69 |"name: "| "functi|
|00004350| 6f 6e 20 22 20 73 74 72 | 20 22 20 7b 22 20 6e 20 |on " str| " {" n |
|00004360| 3e 20 5f 20 6e 20 3c 20 | 22 7d 22 29 20 28 62 61 |> _ n < |"}") (ba|
|00004370| 73 68 20 22 6e 61 6d 65 | 3a 20 22 20 22 66 75 6e |sh "name|: " "fun|
|00004380| 63 74 69 6f 6e 20 22 20 | 73 74 72 20 22 28 29 20 |ction " |str "() |
|00004390| 7b 22 20 6e 20 3e 20 5f | 20 6e 20 3c 20 22 7d 22 |{" n > _| n < "}"|
|000043a0| 29 29 20 64 65 66 69 6e | 69 74 69 6f 6e 73 20 62 |)) defin|itions b|
|000043b0| 6f 75 6e 64 70 20 73 6b | 65 6c 65 74 6f 6e 2d 64 |oundp sk|eleton-d|
|000043c0| 65 62 75 67 20 73 68 2d | 66 75 6e 63 74 69 6f 6e |ebug sh-|function|
|000043d0| 20 70 75 74 20 6d 65 6e | 75 2d 65 6e 61 62 6c 65 | put men|u-enable|
|000043e0| 20 28 67 65 74 20 28 71 | 75 6f 74 65 20 73 68 2d | (get (q|uote sh-|
|000043f0| 66 75 6e 63 74 69 6f 6e | 29 20 73 68 2d 73 68 65 |function|) sh-she|
|00004400| 6c 6c 29 5d 20 36 29 0a | 28 64 65 66 61 6c 69 61 |ll)] 6).|(defalia|
|00004410| 73 20 27 73 68 2d 66 75 | 6e 63 74 69 6f 6e 20 23 |s 'sh-fu|nction #|
|00004420| 5b 6e 69 6c 20 22 c0 c1 | 5c 6e 4e 86 5c 66 00 c3 |[nil "..|\nN.\f..|
|00004430| c4 c1 5c 6e 23 21 87 22 | 20 5b 73 6b 65 6c 65 74 |..\n#!."| [skelet|
|00004440| 6f 6e 2d 69 6e 73 65 72 | 74 20 73 68 2d 66 75 6e |on-inser|t sh-fun|
|00004450| 63 74 69 6f 6e 20 73 68 | 2d 73 68 65 6c 6c 20 65 |ction sh|-shell e|
|00004460| 72 72 6f 72 20 22 25 73 | 20 73 74 61 74 65 6d 65 |rror "%s| stateme|
|00004470| 6e 74 20 73 79 6e 74 61 | 78 20 6e 6f 74 20 64 65 |nt synta|x not de|
|00004480| 66 69 6e 65 64 20 66 6f | 72 20 73 68 65 6c 6c 20 |fined fo|r shell |
|00004490| 25 73 2e 22 5d 20 35 20 | 22 5c 0a 49 6e 73 65 72 |%s."] 5 |"\.Inser|
|000044a0| 74 20 61 20 66 75 6e 63 | 74 69 6f 6e 20 64 65 66 |t a func|tion def|
|000044b0| 69 6e 69 74 69 6f 6e 20 | 69 6e 20 74 68 65 20 63 |inition |in the c|
|000044c0| 75 72 72 65 6e 74 20 73 | 68 65 6c 6c 27 73 20 73 |urrent s|hell's s|
|000044d0| 79 6e 74 61 78 2e 22 20 | 6e 69 6c 5d 29 0a 28 62 |yntax." |nil]).(b|
|000044e0| 79 74 65 2d 63 6f 64 65 | 20 22 c0 19 c2 c3 21 83 |yte-code| "....!.|
|000044f0| 5c 66 00 0b 84 14 00 c4 | 09 40 40 4e 84 2d 00 c5 |\f......|.@@N.-..|
|00004500| c4 09 40 40 09 40 41 39 | 83 28 00 c4 09 40 41 4e |..@@.@A9|.(...@AN|
|00004510| 82 2b 00 09 40 41 23 88 | 09 41 89 11 84 02 00 29 |.+..@A#.|.A.....)|
|00004520| c5 c4 c6 c7 23 87 22 20 | 5b 28 28 73 68 20 22 63 |....#." |[((sh "c|
|00004530| 6f 6e 64 69 74 69 6f 6e | 3a 20 22 20 22 69 66 20 |ondition|: " "if |
|00004540| 5b 20 22 20 73 74 72 20 | 22 20 5d 3b 20 74 68 65 |[ " str |" ]; the|
|00004550| 6e 22 20 6e 20 3e 20 5f | 20 6e 20 28 22 6f 74 68 |n" n > _| n ("oth|
|00004560| 65 72 20 63 6f 6e 64 69 | 74 69 6f 6e 2c 20 25 73 |er condi|tion, %s|
|00004570| 3a 20 22 20 3c 20 22 65 | 6c 69 66 20 5b 20 22 20 |: " < "e|lif [ " |
|00004580| 73 74 72 20 22 20 5d 3b | 20 74 68 65 6e 22 20 6e |str " ];| then" n|
|00004590| 20 3e 20 6e 29 20 3c 20 | 22 65 6c 73 65 22 20 6e | > n) < |"else" n|
|000045a0| 20 3e 20 6e 20 72 65 73 | 75 6d 65 3a 20 3c 20 22 | > n res|ume: < "|
|000045b0| 66 69 22 29 20 28 6b 73 | 68 20 2e 20 73 68 29 20 |fi") (ks|h . sh) |
|000045c0| 28 62 61 73 68 20 2e 20 | 73 68 29 20 28 63 73 68 |(bash . |sh) (csh|
|000045d0| 20 22 63 6f 6e 64 69 74 | 69 6f 6e 3a 20 22 20 22 | "condit|ion: " "|
|000045e0| 69 66 28 20 22 20 73 74 | 72 20 22 20 29 20 74 68 |if( " st|r " ) th|
|000045f0| 65 6e 22 20 6e 20 3e 20 | 5f 20 6e 20 28 22 6f 74 |en" n > |_ n ("ot|
|00004600| 68 65 72 20 63 6f 6e 64 | 69 74 69 6f 6e 2c 20 25 |her cond|ition, %|
|00004610| 73 3a 20 22 20 3c 20 22 | 65 6c 73 65 20 69 66 20 |s: " < "|else if |
|00004620| 28 20 22 20 73 74 72 20 | 22 20 29 20 74 68 65 6e |( " str |" ) then|
|00004630| 22 20 6e 20 3e 20 6e 29 | 20 3c 20 22 65 6c 73 65 |" n > n)| < "else|
|00004640| 22 20 6e 20 3e 20 6e 20 | 72 65 73 75 6d 65 3a 20 |" n > n |resume: |
|00004650| 3c 20 22 65 6e 64 69 66 | 22 29 20 28 74 63 73 68 |< "endif|") (tcsh|
|00004660| 20 2e 20 63 73 68 29 29 | 20 64 65 66 69 6e 69 74 | . csh))| definit|
|00004670| 69 6f 6e 73 20 62 6f 75 | 6e 64 70 20 73 6b 65 6c |ions bou|ndp skel|
|00004680| 65 74 6f 6e 2d 64 65 62 | 75 67 20 73 68 2d 69 66 |eton-deb|ug sh-if|
|00004690| 20 70 75 74 20 6d 65 6e | 75 2d 65 6e 61 62 6c 65 | put men|u-enable|
|000046a0| 20 28 67 65 74 20 28 71 | 75 6f 74 65 20 73 68 2d | (get (q|uote sh-|
|000046b0| 69 66 29 20 73 68 2d 73 | 68 65 6c 6c 29 5d 20 36 |if) sh-s|hell)] 6|
|000046c0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 68 2d |).(defal|ias 'sh-|
|000046d0| 69 66 20 23 5b 6e 69 6c | 20 22 c0 c1 5c 6e 4e 86 |if #[nil| "..\nN.|
|000046e0| 5c 66 00 c3 c4 c1 5c 6e | 23 21 87 22 20 5b 73 6b |\f....\n|#!." [sk|
|000046f0| 65 6c 65 74 6f 6e 2d 69 | 6e 73 65 72 74 20 73 68 |eleton-i|nsert sh|
|00004700| 2d 69 66 20 73 68 2d 73 | 68 65 6c 6c 20 65 72 72 |-if sh-s|hell err|
|00004710| 6f 72 20 22 25 73 20 73 | 74 61 74 65 6d 65 6e 74 |or "%s s|tatement|
|00004720| 20 73 79 6e 74 61 78 20 | 6e 6f 74 20 64 65 66 69 | syntax |not defi|
|00004730| 6e 65 64 20 66 6f 72 20 | 73 68 65 6c 6c 20 25 73 |ned for |shell %s|
|00004740| 2e 22 5d 20 35 20 22 5c | 0a 49 6e 73 65 72 74 20 |."] 5 "\|.Insert |
|00004750| 61 6e 20 69 66 20 73 74 | 61 74 65 6d 65 6e 74 20 |an if st|atement |
|00004760| 69 6e 20 74 68 65 20 63 | 75 72 72 65 6e 74 20 73 |in the c|urrent s|
|00004770| 68 65 6c 6c 27 73 20 73 | 79 6e 74 61 78 2e 22 20 |hell's s|yntax." |
|00004780| 6e 69 6c 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |nil]).(b|yte-code|
|00004790| 20 22 c0 19 c2 c3 21 83 | 5c 66 00 0b 84 14 00 c4 | "....!.|\f......|
|000047a0| 09 40 40 4e 84 2d 00 c5 | c4 09 40 40 09 40 41 39 |.@@N.-..|..@@.@A9|
|000047b0| 83 28 00 c4 09 40 41 4e | 82 2b 00 09 40 41 23 88 |.(...@AN|.+..@A#.|
|000047c0| 09 41 89 11 84 02 00 29 | c5 c4 c6 c7 23 87 22 20 |.A.....)|....#." |
|000047d0| 5b 28 28 6b 73 68 20 22 | 49 6e 64 65 78 20 76 61 |[((ksh "|Index va|
|000047e0| 72 69 61 62 6c 65 3a 20 | 22 20 22 73 65 6c 65 63 |riable: |" "selec|
|000047f0| 74 20 22 20 73 74 72 20 | 22 20 69 6e 20 22 20 5f |t " str |" in " _|
|00004800| 20 22 3b 20 64 6f 22 20 | 6e 20 3e 20 33 36 20 73 | "; do" |n > 36 s|
|00004810| 74 72 20 6e 20 3c 20 22 | 64 6f 6e 65 22 29 29 20 |tr n < "|done")) |
|00004820| 64 65 66 69 6e 69 74 69 | 6f 6e 73 20 62 6f 75 6e |definiti|ons boun|
|00004830| 64 70 20 73 6b 65 6c 65 | 74 6f 6e 2d 64 65 62 75 |dp skele|ton-debu|
|00004840| 67 20 73 68 2d 73 65 6c | 65 63 74 20 70 75 74 20 |g sh-sel|ect put |
|00004850| 6d 65 6e 75 2d 65 6e 61 | 62 6c 65 20 28 67 65 74 |menu-ena|ble (get|
|00004860| 20 28 71 75 6f 74 65 20 | 73 68 2d 73 65 6c 65 63 | (quote |sh-selec|
|00004870| 74 29 20 73 68 2d 73 68 | 65 6c 6c 29 5d 20 36 29 |t) sh-sh|ell)] 6)|
|00004880| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 2d 73 |.(defali|as 'sh-s|
|00004890| 65 6c 65 63 74 20 23 5b | 6e 69 6c 20 22 c0 c1 5c |elect #[|nil "..\|
|000048a0| 6e 4e 86 5c 66 00 c3 c4 | c1 5c 6e 23 21 87 22 20 |nN.\f...|.\n#!." |
|000048b0| 5b 73 6b 65 6c 65 74 6f | 6e 2d 69 6e 73 65 72 74 |[skeleto|n-insert|
|000048c0| 20 73 68 2d 73 65 6c 65 | 63 74 20 73 68 2d 73 68 | sh-sele|ct sh-sh|
|000048d0| 65 6c 6c 20 65 72 72 6f | 72 20 22 25 73 20 73 74 |ell erro|r "%s st|
|000048e0| 61 74 65 6d 65 6e 74 20 | 73 79 6e 74 61 78 20 6e |atement |syntax n|
|000048f0| 6f 74 20 64 65 66 69 6e | 65 64 20 66 6f 72 20 73 |ot defin|ed for s|
|00004900| 68 65 6c 6c 20 25 73 2e | 22 5d 20 35 20 22 5c 0a |hell %s.|"] 5 "\.|
|00004910| 49 6e 73 65 72 74 20 61 | 20 73 65 6c 65 63 74 20 |Insert a| select |
|00004920| 73 74 61 74 65 6d 65 6e | 74 20 69 6e 20 74 68 65 |statemen|t in the|
|00004930| 20 63 75 72 72 65 6e 74 | 20 73 68 65 6c 6c 27 73 | current| shell's|
|00004940| 20 73 79 6e 74 61 78 2e | 22 20 6e 69 6c 5d 29 0a | syntax.|" nil]).|
|00004950| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 c3 |(byte-co|de "....|
|00004960| 23 88 c4 1d c6 c7 21 83 | 13 00 0e 07 84 1b 00 c8 |#.....!.|........|
|00004970| 0d 40 40 4e 84 34 00 c0 | c8 0d 40 40 0d 40 41 39 |.@@N.4..|..@@.@A9|
|00004980| 83 2f 00 c8 0d 40 41 4e | 82 32 00 0d 40 41 23 88 |./...@AN|.2..@A#.|
|00004990| 0d 41 89 15 84 08 00 29 | c0 c8 c2 c9 23 87 22 20 |.A.....)|....#." |
|000049a0| 5b 70 75 74 20 73 68 2d | 73 65 6c 65 63 74 20 6d |[put sh-|select m|
|000049b0| 65 6e 75 2d 65 6e 61 62 | 6c 65 20 28 67 65 74 20 |enu-enab|le (get |
|000049c0| 28 71 75 6f 74 65 20 73 | 68 2d 73 65 6c 65 63 74 |(quote s|h-select|
|000049d0| 29 20 73 68 2d 73 68 65 | 6c 6c 29 20 28 28 73 68 |) sh-she|ll) ((sh|
|000049e0| 20 22 63 6f 6e 64 69 74 | 69 6f 6e 3a 20 22 20 22 | "condit|ion: " "|
|000049f0| 75 6e 74 69 6c 20 5b 20 | 22 20 73 74 72 20 22 20 |until [ |" str " |
|00004a00| 5d 3b 20 64 6f 22 20 6e | 20 3e 20 5f 20 6e 20 3c |]; do" n| > _ n <|
|00004a10| 20 22 64 6f 6e 65 22 29 | 20 28 6b 73 68 20 2e 20 | "done")| (ksh . |
|00004a20| 73 68 29 20 28 62 61 73 | 68 20 2e 20 73 68 29 29 |sh) (bas|h . sh))|
|00004a30| 20 64 65 66 69 6e 69 74 | 69 6f 6e 73 20 62 6f 75 | definit|ions bou|
|00004a40| 6e 64 70 20 73 6b 65 6c | 65 74 6f 6e 2d 64 65 62 |ndp skel|eton-deb|
|00004a50| 75 67 20 73 68 2d 75 6e | 74 69 6c 20 28 67 65 74 |ug sh-un|til (get|
|00004a60| 20 28 71 75 6f 74 65 20 | 73 68 2d 75 6e 74 69 6c | (quote |sh-until|
|00004a70| 29 20 73 68 2d 73 68 65 | 6c 6c 29 5d 20 36 29 0a |) sh-she|ll)] 6).|
|00004a80| 28 64 65 66 61 6c 69 61 | 73 20 27 73 68 2d 75 6e |(defalia|s 'sh-un|
|00004a90| 74 69 6c 20 23 5b 6e 69 | 6c 20 22 c0 c1 5c 6e 4e |til #[ni|l "..\nN|
|00004aa0| 86 5c 66 00 c3 c4 c1 5c | 6e 23 21 87 22 20 5b 73 |.\f....\|n#!." [s|
|00004ab0| 6b 65 6c 65 74 6f 6e 2d | 69 6e 73 65 72 74 20 73 |keleton-|insert s|
|00004ac0| 68 2d 75 6e 74 69 6c 20 | 73 68 2d 73 68 65 6c 6c |h-until |sh-shell|
|00004ad0| 20 65 72 72 6f 72 20 22 | 25 73 20 73 74 61 74 65 | error "|%s state|
|00004ae0| 6d 65 6e 74 20 73 79 6e | 74 61 78 20 6e 6f 74 20 |ment syn|tax not |
|00004af0| 64 65 66 69 6e 65 64 20 | 66 6f 72 20 73 68 65 6c |defined |for shel|
|00004b00| 6c 20 25 73 2e 22 5d 20 | 35 20 22 5c 0a 49 6e 73 |l %s."] |5 "\.Ins|
|00004b10| 65 72 74 20 61 6e 20 75 | 6e 74 69 6c 20 6c 6f 6f |ert an u|ntil loo|
|00004b20| 70 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |p in the| current|
|00004b30| 20 73 68 65 6c 6c 27 73 | 20 73 79 6e 74 61 78 2e | shell's| syntax.|
|00004b40| 22 20 6e 69 6c 5d 29 0a | 28 62 79 74 65 2d 63 6f |" nil]).|(byte-co|
|00004b50| 64 65 20 22 c0 c1 c2 c3 | 23 88 c4 1d c6 c7 21 83 |de "....|#.....!.|
|00004b60| 13 00 0e 07 84 1b 00 c8 | 0d 40 40 4e 84 34 00 c0 |........|.@@N.4..|
|00004b70| c8 0d 40 40 0d 40 41 39 | 83 2f 00 c8 0d 40 41 4e |..@@.@A9|./...@AN|
|00004b80| 82 32 00 0d 40 41 23 88 | 0d 41 89 15 84 08 00 29 |.2..@A#.|.A.....)|
|00004b90| c0 c8 c2 c9 23 87 22 20 | 5b 70 75 74 20 73 68 2d |....#." |[put sh-|
|00004ba0| 75 6e 74 69 6c 20 6d 65 | 6e 75 2d 65 6e 61 62 6c |until me|nu-enabl|
|00004bb0| 65 20 28 67 65 74 20 28 | 71 75 6f 74 65 20 73 68 |e (get (|quote sh|
|00004bc0| 2d 75 6e 74 69 6c 29 20 | 73 68 2d 73 68 65 6c 6c |-until) |sh-shell|
|00004bd0| 29 20 28 28 73 68 20 22 | 63 6f 6e 64 69 74 69 6f |) ((sh "|conditio|
|00004be0| 6e 3a 20 22 20 22 77 68 | 69 6c 65 20 5b 20 22 20 |n: " "wh|ile [ " |
|00004bf0| 73 74 72 20 22 20 5d 3b | 20 64 6f 22 20 6e 20 3e |str " ];| do" n >|
|00004c00| 20 5f 20 6e 20 3c 20 22 | 64 6f 6e 65 22 29 20 28 | _ n < "|done") (|
|00004c10| 6b 73 68 20 2e 20 73 68 | 29 20 28 62 61 73 68 20 |ksh . sh|) (bash |
|00004c20| 2e 20 73 68 29 20 28 63 | 73 68 20 22 63 6f 6e 64 |. sh) (c|sh "cond|
|00004c30| 69 74 69 6f 6e 3a 20 22 | 20 22 77 68 69 6c 65 28 |ition: "| "while(|
|00004c40| 20 22 20 73 74 72 20 22 | 20 29 22 20 6e 20 3e 20 | " str "| )" n > |
|00004c50| 5f 20 6e 20 3c 20 22 65 | 6e 64 22 29 20 28 74 63 |_ n < "e|nd") (tc|
|00004c60| 73 68 20 2e 20 63 73 68 | 29 29 20 64 65 66 69 6e |sh . csh|)) defin|
|00004c70| 69 74 69 6f 6e 73 20 62 | 6f 75 6e 64 70 20 73 6b |itions b|oundp sk|
|00004c80| 65 6c 65 74 6f 6e 2d 64 | 65 62 75 67 20 73 68 2d |eleton-d|ebug sh-|
|00004c90| 77 68 69 6c 65 20 28 67 | 65 74 20 28 71 75 6f 74 |while (g|et (quot|
|00004ca0| 65 20 73 68 2d 77 68 69 | 6c 65 29 20 73 68 2d 73 |e sh-whi|le) sh-s|
|00004cb0| 68 65 6c 6c 29 5d 20 36 | 29 0a 28 64 65 66 61 6c |hell)] 6|).(defal|
|00004cc0| 69 61 73 20 27 73 68 2d | 77 68 69 6c 65 20 23 5b |ias 'sh-|while #[|
|00004cd0| 6e 69 6c 20 22 c0 c1 5c | 6e 4e 86 5c 66 00 c3 c4 |nil "..\|nN.\f...|
|00004ce0| c1 5c 6e 23 21 87 22 20 | 5b 73 6b 65 6c 65 74 6f |.\n#!." |[skeleto|
|00004cf0| 6e 2d 69 6e 73 65 72 74 | 20 73 68 2d 77 68 69 6c |n-insert| sh-whil|
|00004d00| 65 20 73 68 2d 73 68 65 | 6c 6c 20 65 72 72 6f 72 |e sh-she|ll error|
|00004d10| 20 22 25 73 20 73 74 61 | 74 65 6d 65 6e 74 20 73 | "%s sta|tement s|
|00004d20| 79 6e 74 61 78 20 6e 6f | 74 20 64 65 66 69 6e 65 |yntax no|t define|
|00004d30| 64 20 66 6f 72 20 73 68 | 65 6c 6c 20 25 73 2e 22 |d for sh|ell %s."|
|00004d40| 5d 20 35 20 22 5c 0a 49 | 6e 73 65 72 74 20 61 20 |] 5 "\.I|nsert a |
|00004d50| 77 68 69 6c 65 20 6c 6f | 6f 70 20 69 6e 20 74 68 |while lo|op in th|
|00004d60| 65 20 63 75 72 72 65 6e | 74 20 73 68 65 6c 6c 27 |e curren|t shell'|
|00004d70| 73 20 73 79 6e 74 61 78 | 2e 22 20 6e 69 6c 5d 29 |s syntax|." nil])|
|00004d80| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 73 68 2d 71 |.(defali|as 'sh-q|
|00004d90| 75 65 72 79 2d 66 6f 72 | 2d 76 61 72 69 61 62 6c |uery-for|-variabl|
|00004da0| 65 20 23 5b 28 61 72 67 | 29 20 22 08 c1 56 86 08 |e #[(arg|) "..V..|
|00004db0| 00 c2 20 c3 08 21 88 86 | 48 00 c4 c5 c6 4e 86 1e |.. ..!..|H....N..|
|00004dc0| 00 c7 c5 c6 c8 0e 09 21 | 23 70 1e 5c 6e 1e 09 1e |.......!|#p.\n...|
|00004dd0| 0b cc 0e 09 cd ce 23 88 | cf d0 d1 0e 12 d3 23 21 |......#.|......#!|
|00004de0| 08 d4 3d 83 3d 00 c1 75 | 88 63 88 08 d4 3d 85 47 |..=.=..u|.c...=.G|
|00004df0| 00 c1 75 2b 87 22 20 5b | 61 72 67 20 31 20 73 68 |..u+." [|arg 1 sh|
|00004e00| 2d 71 75 6f 74 65 64 2d | 70 20 73 65 6c 66 2d 69 |-quoted-|p self-i|
|00004e10| 6e 73 65 72 74 2d 63 6f | 6d 6d 61 6e 64 20 6e 69 |nsert-co|mmand ni|
|00004e20| 6c 20 73 68 2d 71 75 65 | 72 79 2d 66 6f 72 2d 76 |l sh-que|ry-for-v|
|00004e30| 61 72 69 61 62 6c 65 20 | 6b 65 79 6d 61 70 20 70 |ariable |keymap p|
|00004e40| 75 74 20 63 6f 70 79 2d | 6b 65 79 6d 61 70 20 6d |ut copy-|keymap m|
|00004e50| 69 6e 69 62 75 66 66 65 | 72 2d 6c 6f 63 61 6c 2d |inibuffe|r-local-|
|00004e60| 63 6f 6d 70 6c 65 74 69 | 6f 6e 2d 6d 61 70 20 62 |completi|on-map b|
|00004e70| 75 66 66 65 72 20 63 6f | 6d 70 6c 65 74 69 6f 6e |uffer co|mpletion|
|00004e80| 2d 69 67 6e 6f 72 65 2d | 63 61 73 65 20 64 65 66 |-ignore-|case def|
|00004e90| 69 6e 65 2d 6b 65 79 20 | 22 7b 22 20 23 5b 6e 69 |ine-key |"{" #[ni|
|00004ea0| 6c 20 22 08 84 5c 6e 00 | 60 c1 56 83 0d 00 c2 20 |l "..\n.|`.V.... |
|00004eb0| 87 c3 8b 87 22 20 5b 61 | 72 67 20 31 20 62 65 65 |...." [a|rg 1 bee|
|00004ec0| 70 20 28 28 62 79 74 65 | 2d 63 6f 64 65 20 22 c0 |p ((byte|-code ".|
|00004ed0| 11 c2 0b 21 88 c4 63 87 | 22 20 5b 74 20 61 72 67 |...!..c.|" [t arg|
|00004ee0| 20 73 77 69 74 63 68 2d | 74 6f 2d 62 75 66 66 65 | switch-|to-buffe|
|00004ef0| 72 2d 6f 74 68 65 72 2d | 77 69 6e 64 6f 77 20 62 |r-other-|window b|
|00004f00| 75 66 66 65 72 20 22 7b | 7d 22 5d 20 32 29 29 5d |uffer "{|}"] 2))]|
|00004f10| 20 32 20 6e 69 6c 20 6e | 69 6c 5d 20 73 68 2d 72 | 2 nil n|il] sh-r|
|00004f20| 65 6d 65 6d 62 65 72 2d | 76 61 72 69 61 62 6c 65 |emember-|variable|
|00004f30| 20 63 6f 6d 70 6c 65 74 | 69 6e 67 2d 72 65 61 64 | complet|ing-read|
|00004f40| 20 22 56 61 72 69 61 62 | 6c 65 3a 20 22 20 73 68 | "Variab|le: " sh|
|00004f50| 2d 76 61 72 69 61 62 6c | 65 73 20 23 5b 28 65 6c |-variabl|es #[(el|
|00004f60| 65 6d 65 6e 74 29 20 22 | 08 41 3f 86 5c 6e 00 09 |ement) "|.A?.\n..|
|00004f70| 08 41 3e 87 22 20 5b 65 | 6c 65 6d 65 6e 74 20 73 |.A>." [e|lement s|
|00004f80| 68 2d 73 68 65 6c 6c 5d | 20 32 5d 20 74 5d 20 36 |h-shell]| 2] t] 6|
|00004f90| 20 22 5c 0a 55 6e 6c 65 | 73 73 20 71 75 6f 74 65 | "\.Unle|ss quote|
|00004fa0| 64 20 77 69 74 68 20 60 | 5c 5c 27 2c 20 71 75 65 |d with `|\\', que|
|00004fb0| 72 79 20 66 6f 72 20 76 | 61 72 69 61 62 6c 65 2d |ry for v|ariable-|
|00004fc0| 6e 61 6d 65 20 77 69 74 | 68 20 63 6f 6d 70 6c 65 |name wit|h comple|
|00004fd0| 74 69 6f 6e 73 2e 0a 50 | 72 65 66 69 78 20 61 72 |tions..P|refix ar|
|00004fe0| 67 20 30 20 6d 65 61 6e | 73 20 64 6f 6e 27 74 20 |g 0 mean|s don't |
|00004ff0| 69 6e 73 65 72 74 20 60 | 24 27 20 62 65 66 6f 72 |insert `|$' befor|
|00005000| 65 20 74 68 65 20 76 61 | 72 69 61 62 6c 65 2e 0a |e the va|riable..|
|00005010| 50 72 65 66 69 78 20 61 | 72 67 20 32 20 6f 72 20 |Prefix a|rg 2 or |
|00005020| 6d 6f 72 65 20 6d 65 61 | 6e 73 20 6f 6e 6c 79 20 |more mea|ns only |
|00005030| 64 6f 20 73 65 6c 66 2d | 69 6e 73 65 72 74 20 74 |do self-|insert t|
|00005040| 68 61 74 20 6d 61 6e 79 | 20 74 69 6d 65 73 2e 0a |hat many| times..|
|00005050| 20 20 49 66 20 7b 20 69 | 73 20 70 72 65 73 73 65 | If { i|s presse|
|00005060| 64 20 61 73 20 74 68 65 | 20 66 69 72 73 74 20 63 |d as the| first c|
|00005070| 68 61 72 61 63 74 65 72 | 2c 20 69 74 20 77 69 6c |haracter|, it wil|
|00005080| 6c 20 73 75 72 72 6f 75 | 6e 64 20 74 68 65 20 76 |l surrou|nd the v|
|00005090| 61 72 69 61 62 6c 65 20 | 6e 61 6d 65 2e 22 20 22 |ariable |name." "|
|000050a0| 2a 70 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |*p"]).(d|efalias |
|000050b0| 27 73 68 2d 61 73 73 69 | 67 6e 6d 65 6e 74 20 23 |'sh-assi|gnment #|
|000050c0| 5b 28 61 72 67 29 20 22 | 08 c1 3d 83 1c 00 c2 8a |[(arg) "|..=.....|
|000050d0| 0b 5c 66 3e 83 12 00 c5 | c6 78 88 60 c7 c6 78 88 |.\f>....|.x.`..x.|
|000050e0| 60 7b 29 21 88 c8 08 21 | 87 22 20 5b 61 72 67 20 |`{)!...!|." [arg |
|000050f0| 31 20 73 68 2d 72 65 6d | 65 6d 62 65 72 2d 76 61 |1 sh-rem|ember-va|
|00005100| 72 69 61 62 6c 65 20 73 | 68 2d 73 68 65 6c 6c 20 |riable s|h-shell |
|00005110| 73 68 2d 61 73 73 69 67 | 6e 6d 65 6e 74 2d 73 70 |sh-assig|nment-sp|
|00005120| 61 63 65 20 22 20 09 22 | 20 6e 69 6c 20 22 61 2d |ace " ."| nil "a-|
|00005130| 7a 41 2d 5a 30 2d 39 5f | 22 20 73 65 6c 66 2d 69 |zA-Z0-9_|" self-i|
|00005140| 6e 73 65 72 74 2d 63 6f | 6d 6d 61 6e 64 5d 20 34 |nsert-co|mmand] 4|
|00005150| 20 22 5c 0a 49 6e 73 65 | 72 74 20 73 65 6c 66 2e | "\.Inse|rt self.|
|00005160| 20 20 52 65 6d 65 6d 62 | 65 72 20 70 72 65 76 69 | Rememb|er previ|
|00005170| 6f 75 73 20 69 64 65 6e | 74 69 66 69 65 72 20 66 |ous iden|tifier f|
|00005180| 6f 72 20 66 75 74 75 72 | 65 20 63 6f 6d 70 6c 65 |or futur|e comple|
|00005190| 74 69 6e 67 20 72 65 61 | 64 2e 22 20 22 70 22 5d |ting rea|d." "p"]|
|000051a0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 73 68 2d |).(defal|ias 'sh-|
|000051b0| 6d 61 79 62 65 2d 68 65 | 72 65 2d 64 6f 63 75 6d |maybe-he|re-docum|
|000051c0| 65 6e 74 20 23 5b 28 61 | 72 67 29 20 22 c0 c1 5c |ent #[(a|rg) "..\|
|000051d0| 6e 21 21 88 5c 6e 86 3a | 00 60 c3 5a 66 5c 66 3d |n!!.\n.:|.`.Zf\f=|
|000051e0| 3f 86 3a 00 8a 60 c3 5a | 62 88 c5 20 29 86 3a 00 |?.:..`.Z|b.. ).:.|
|000051f0| 0e 06 63 88 c7 c8 21 84 | 2d 00 c9 63 88 ca 7f 88 |..c...!.|-..c....|
|00005200| cb 20 88 8a cc 0e 06 b1 | 02 29 87 22 20 5b 73 65 |. ......|.)." [se|
|00005210| 6c 66 2d 69 6e 73 65 72 | 74 2d 63 6f 6d 6d 61 6e |lf-inser|t-comman|
|00005220| 64 20 70 72 65 66 69 78 | 2d 6e 75 6d 65 72 69 63 |d prefix|-numeric|
|00005230| 2d 76 61 6c 75 65 20 61 | 72 67 20 32 20 6c 61 73 |-value a|rg 2 las|
|00005240| 74 2d 63 6f 6d 6d 61 6e | 64 2d 63 68 61 72 20 73 |t-comman|d-char s|
|00005250| 68 2d 71 75 6f 74 65 64 | 2d 70 20 73 68 2d 68 65 |h-quoted|-p sh-he|
|00005260| 72 65 2d 64 6f 63 75 6d | 65 6e 74 2d 77 6f 72 64 |re-docum|ent-word|
|00005270| 20 6c 6f 6f 6b 69 6e 67 | 2d 61 74 20 22 5b 20 09 | looking|-at "[ .|
|00005280| 5c 6e 5d 22 20 33 32 20 | 31 20 6e 65 77 6c 69 6e |\n]" 32 |1 newlin|
|00005290| 65 20 31 30 5d 20 33 20 | 22 5c 0a 49 6e 73 65 72 |e 10] 3 |"\.Inser|
|000052a0| 74 73 20 73 65 6c 66 2e | 20 20 57 69 74 68 6f 75 |ts self.| Withou|
|000052b0| 74 20 70 72 65 66 69 78 | 2c 20 66 6f 6c 6c 6f 77 |t prefix|, follow|
|000052c0| 69 6e 67 20 75 6e 71 75 | 6f 74 65 64 20 60 3c 27 |ing unqu|oted `<'|
|000052d0| 20 69 6e 73 65 72 74 73 | 20 68 65 72 65 20 64 6f | inserts| here do|
|000052e0| 63 75 6d 65 6e 74 2e 0a | 54 68 65 20 64 6f 63 75 |cument..|The docu|
|000052f0| 6d 65 6e 74 20 69 73 20 | 62 6f 75 6e 64 65 64 20 |ment is |bounded |
|00005300| 62 79 20 60 73 68 2d 68 | 65 72 65 2d 64 6f 63 75 |by `sh-h|ere-docu|
|00005310| 6d 65 6e 74 2d 77 6f 72 | 64 27 2e 22 20 22 2a 50 |ment-wor|d'." "*P|
|00005320| 22 5d 29 0a 28 61 75 74 | 6f 6c 6f 61 64 20 28 71 |"]).(aut|oload (q|
|00005330| 75 6f 74 65 20 63 6f 6d | 69 6e 74 2d 64 79 6e 61 |uote com|int-dyna|
|00005340| 6d 69 63 2d 63 6f 6d 70 | 6c 65 74 65 2d 66 69 6c |mic-comp|lete-fil|
|00005350| 65 6e 61 6d 65 29 20 22 | 63 6f 6d 69 6e 74 22 20 |ename) "|comint" |
|00005360| 22 5c 0a 44 79 6e 61 6d | 69 63 61 6c 6c 79 20 63 |"\.Dynam|ically c|
|00005370| 6f 6d 70 6c 65 74 65 20 | 74 68 65 20 66 69 6c 65 |omplete |the file|
|00005380| 6e 61 6d 65 20 61 74 20 | 70 6f 69 6e 74 2e 22 20 |name at |point." |
|00005390| 74 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 68 |t).(defa|lias 'sh|
|000053a0| 2d 6e 65 77 6c 69 6e 65 | 2d 61 6e 64 2d 69 6e 64 |-newline|-and-ind|
|000053b0| 65 6e 74 20 23 5b 28 26 | 6f 70 74 69 6f 6e 61 6c |ent #[(&|optional|
|000053c0| 20 61 72 67 29 20 22 c0 | 20 60 19 1a 0b 84 1f 00 | arg) ".| `......|
|000053d0| c4 c5 78 88 60 09 57 83 | 1b 00 c6 20 83 1b 00 c7 |..x.`.W.|... ....|
|000053e0| 75 88 60 09 7c 88 c8 20 | 88 5c 6e 6a 2a 87 22 20 |u.`.|.. |.\nj*." |
|000053f0| 5b 63 75 72 72 65 6e 74 | 2d 69 6e 64 65 6e 74 61 |[current|-indenta|
|00005400| 74 69 6f 6e 20 65 6e 64 | 2d 6f 66 2d 6c 69 6e 65 |tion end|-of-line|
|00005410| 20 70 72 65 76 69 6f 75 | 73 20 61 72 67 20 22 20 | previou|s arg " |
|00005420| 09 22 20 6e 69 6c 20 73 | 68 2d 71 75 6f 74 65 64 |." nil s|h-quoted|
|00005430| 2d 70 20 31 20 6e 65 77 | 6c 69 6e 65 5d 20 32 20 |-p 1 new|line] 2 |
|00005440| 22 5c 0a 53 74 72 69 70 | 20 75 6e 71 75 6f 74 65 |"\.Strip| unquote|
|00005450| 64 20 77 68 69 74 65 73 | 70 61 63 65 2c 20 69 6e |d whites|pace, in|
|00005460| 73 65 72 74 20 6e 65 77 | 6c 69 6e 65 2c 20 61 6e |sert new|line, an|
|00005470| 64 20 69 6e 64 65 6e 74 | 20 6c 69 6b 65 20 63 75 |d indent| like cu|
|00005480| 72 72 65 6e 74 20 6c 69 | 6e 65 2e 0a 55 6e 71 75 |rrent li|ne..Unqu|
|00005490| 6f 74 65 64 20 77 68 69 | 74 65 73 70 61 63 65 20 |oted whi|tespace |
|000054a0| 69 73 20 73 74 72 69 70 | 70 65 64 20 66 72 6f 6d |is strip|ped from|
|000054b0| 20 74 68 65 20 63 75 72 | 72 65 6e 74 20 6c 69 6e | the cur|rent lin|
|000054c0| 65 27 73 20 65 6e 64 2c | 20 75 6e 6c 65 73 73 20 |e's end,| unless |
|000054d0| 61 0a 70 72 65 66 69 78 | 20 41 52 47 20 69 73 20 |a.prefix| ARG is |
|000054e0| 67 69 76 65 6e 2e 22 20 | 22 2a 50 22 5d 29 0a 28 |given." |"*P"]).(|
|000054f0| 64 65 66 61 6c 69 61 73 | 20 27 73 68 2d 73 65 74 |defalias| 'sh-set|
|00005500| 2d 73 68 65 6c 6c 20 23 | 5b 28 73 68 65 6c 6c 29 |-shell #|[(shell)|
|00005510| 20 22 8a 65 62 88 c0 09 | 21 83 0e 00 09 82 18 00 | ".eb...|!.......|
|00005520| c2 09 21 86 18 00 c3 c4 | 09 5c 22 15 c6 c7 0d 21 |..!.....|.\"....!|
|00005530| 21 89 16 08 c9 3e 16 5c | 6e cb cc cd 0e 08 5c 22 |!....>.\|n.....\"|
|00005540| 21 89 16 0e 83 3f 00 cf | 0e 0e 21 83 3f 00 0e 0e |!....?..|..!.?...|
|00005550| 4a 82 41 00 0e 10 16 0e | 0e 5c 6e 83 4c 00 d1 82 |J.A.....|.\n.L...|
|00005560| 4d 00 d2 16 13 cc d4 0e | 08 5c 22 16 15 0d 0e 16 |M.......|.\".....|
|00005570| 85 5d 00 d7 0e 16 51 11 | 0e 18 84 df 00 0e 19 83 |.]....Q.|........|
|00005580| 74 00 da 0e 1b 0e 19 5c | 22 84 df 00 cf dc 21 83 |t......\|".....!.|
|00005590| 84 00 0e 1c 83 84 00 0e | 1d 82 85 00 de 83 df 00 |........|........|
|000055a0| df e0 21 83 c7 00 e1 e2 | 77 83 df 00 09 60 8a e2 |..!.....|w....`..|
|000055b0| 7f 88 60 29 7b 98 84 df | 00 0e 23 83 af 00 e4 e5 |..`){...|..#.....|
|000055c0| 09 e6 51 21 82 b5 00 e7 | e8 65 60 7b 5c 22 83 df |..Q!....|.e`{\"..|
|000055d0| 00 60 e2 7f 88 60 7c 84 | df 00 09 63 88 82 df 00 |.`...`|.|...c....|
|000055e0| 0e 23 83 d5 00 e4 e9 09 | e6 51 21 82 d6 00 de 83 |.#......|.Q!.....|
|000055f0| df 00 ea 09 eb b1 03 88 | 29 ec ed 21 87 22 20 5b |........|)..!." [|
|00005600| 66 69 6c 65 2d 6e 61 6d | 65 2d 61 62 73 6f 6c 75 |file-nam|e-absolu|
|00005610| 74 65 2d 70 20 73 68 65 | 6c 6c 20 73 68 2d 65 78 |te-p she|ll sh-ex|
|00005620| 65 63 75 74 61 62 6c 65 | 20 65 72 72 6f 72 20 22 |ecutable| error "|
|00005630| 43 61 6e 6e 6f 74 20 66 | 69 6e 64 20 25 73 2e 22 |Cannot f|ind %s."|
|00005640| 20 73 68 2d 73 68 65 6c | 6c 2d 70 61 74 68 20 69 | sh-shel|l-path i|
|00005650| 6e 74 65 72 6e 20 66 69 | 6c 65 2d 6e 61 6d 65 2d |ntern fi|le-name-|
|00005660| 6e 6f 6e 64 69 72 65 63 | 74 6f 72 79 20 73 68 2d |nondirec|tory sh-|
|00005670| 73 68 65 6c 6c 20 28 63 | 73 68 20 74 63 73 68 29 |shell (c|sh tcsh)|
|00005680| 20 73 68 2d 73 68 65 6c | 6c 2d 69 73 2d 63 73 68 | sh-shel|l-is-csh|
|00005690| 20 69 6e 74 65 72 6e 2d | 73 6f 66 74 20 66 6f 72 | intern-|soft for|
|000056a0| 6d 61 74 20 22 73 68 2d | 25 73 2d 66 6f 6e 74 2d |mat "sh-|%s-font-|
|000056b0| 6c 6f 63 6b 2d 6b 65 79 | 77 6f 72 64 73 22 20 66 |lock-key|words" f|
|000056c0| 6f 6e 74 2d 6c 6f 63 6b | 2d 6b 65 79 77 6f 72 64 |ont-lock|-keyword|
|000056d0| 73 20 62 6f 75 6e 64 70 | 20 73 68 2d 66 6f 6e 74 |s boundp| sh-font|
|000056e0| 2d 6c 6f 63 6b 2d 6b 65 | 79 77 6f 72 64 73 20 22 |-lock-ke|ywords "|
|000056f0| 5c 5c 28 5e 5c 5c 7c 5b | 5e 24 5d 5c 5c 7c 5c 5c |\\(^\\|[|^$]\\|\\|
|00005700| 24 5b 5e 7b 5d 5c 5c 29 | 23 2b 5b 09 20 5d 2a 22 |$[^{]\\)|#+[. ]*"|
|00005710| 20 22 5c 5c 28 5e 5c 5c | 7c 5b 5e 24 5d 5c 5c 7c | "\\(^\\||[^$]\\||
|00005720| 5c 5c 24 5b 5e 7b 5d 5c | 5c 29 5c 5c 42 23 2b 5b |\\$[^{]\|\)\\B#+[|
|00005730| 09 20 5d 2a 22 20 63 6f | 6d 6d 65 6e 74 2d 73 74 |. ]*" co|mment-st|
|00005740| 61 72 74 2d 73 6b 69 70 | 20 22 3a 20 25 73 22 20 |art-skip| ": %s" |
|00005750| 6d 6f 64 65 2d 6c 69 6e | 65 2d 70 72 6f 63 65 73 |mode-lin|e-proces|
|00005760| 73 20 73 68 2d 73 68 65 | 6c 6c 2d 61 72 67 75 6d |s sh-she|ll-argum|
|00005770| 65 6e 74 20 22 20 22 20 | 62 75 66 66 65 72 2d 72 |ent " " |buffer-r|
|00005780| 65 61 64 2d 6f 6e 6c 79 | 20 62 75 66 66 65 72 2d |ead-only| buffer-|
|00005790| 66 69 6c 65 2d 6e 61 6d | 65 20 73 74 72 69 6e 67 |file-nam|e string|
|000057a0| 2d 6d 61 74 63 68 20 73 | 68 2d 6d 61 67 69 63 6c |-match s|h-magicl|
|000057b0| 65 73 73 2d 66 69 6c 65 | 2d 72 65 67 65 78 70 20 |ess-file|-regexp |
|000057c0| 66 69 6e 64 2d 66 69 6c | 65 20 73 68 2d 66 69 6e |find-fil|e sh-fin|
|000057d0| 64 2d 66 69 6c 65 2d 6d | 6f 64 69 66 69 65 73 20 |d-file-m|odifies |
|000057e0| 74 20 6c 6f 6f 6b 69 6e | 67 2d 61 74 20 22 23 21 |t lookin|g-at "#!|
|000057f0| 22 20 22 23 21 20 09 22 | 20 6e 69 6c 20 73 68 2d |" "#! ."| nil sh-|
|00005800| 71 75 65 72 79 2d 66 6f | 72 2d 6d 61 67 69 63 20 |query-fo|r-magic |
|00005810| 79 2d 6f 72 2d 6e 2d 70 | 20 22 52 65 70 6c 61 63 |y-or-n-p| "Replac|
|00005820| 65 20 6d 61 67 69 63 20 | 6e 75 6d 62 65 72 20 62 |e magic |number b|
|00005830| 79 20 60 60 23 21 20 22 | 20 22 27 27 3f 20 22 20 |y ``#! "| "''? " |
|00005840| 6d 65 73 73 61 67 65 20 | 22 4d 61 67 69 63 20 6e |message |"Magic n|
|00005850| 75 6d 62 65 72 20 60 60 | 25 73 27 27 20 72 65 70 |umber ``|%s'' rep|
|00005860| 6c 61 63 65 64 2e 22 20 | 22 41 64 64 20 60 60 23 |laced." |"Add ``#|
|00005870| 21 20 22 20 22 23 21 20 | 22 20 31 30 20 72 75 6e |! " "#! |" 10 run|
|00005880| 2d 68 6f 6f 6b 73 20 73 | 68 2d 73 65 74 2d 73 68 |-hooks s|h-set-sh|
|00005890| 65 6c 6c 2d 68 6f 6f 6b | 5d 20 35 20 22 5c 0a 53 |ell-hook|] 5 "\.S|
|000058a0| 65 74 20 74 68 69 73 20 | 62 75 66 66 65 72 27 73 |et this |buffer's|
|000058b0| 20 73 68 65 6c 6c 20 74 | 6f 20 53 48 45 4c 4c 20 | shell t|o SHELL |
|000058c0| 28 61 20 73 74 72 69 6e | 67 29 2e 0a 43 61 6c 6c |(a strin|g)..Call|
|000058d0| 73 20 74 68 65 20 76 61 | 6c 75 65 20 6f 66 20 60 |s the va|lue of `|
|000058e0| 73 68 2d 73 65 74 2d 73 | 68 65 6c 6c 2d 68 6f 6f |sh-set-s|hell-hoo|
|000058f0| 6b 27 20 69 66 20 73 65 | 74 2e 22 20 22 73 4e 61 |k' if se|t." "sNa|
|00005900| 6d 65 20 6f 72 20 70 61 | 74 68 20 6f 66 20 73 68 |me or pa|th of sh|
|00005910| 65 6c 6c 3a 20 22 5d 29 | 0a 28 64 65 66 61 6c 69 |ell: "])|.(defali|
|00005920| 61 73 20 27 73 68 2d 62 | 65 67 69 6e 6e 69 6e 67 |as 'sh-b|eginning|
|00005930| 2d 6f 66 2d 63 6f 6d 6d | 61 6e 64 20 23 5b 6e 69 |-of-comm|and #[ni|
|00005940| 6c 20 22 c0 09 c2 c3 23 | 85 0b 00 c4 94 62 87 22 |l "....#|.....b."|
|00005950| 20 5b 72 65 2d 73 65 61 | 72 63 68 2d 62 61 63 6b | [re-sea|rch-back|
|00005960| 77 61 72 64 20 73 68 2d | 62 65 67 69 6e 6e 69 6e |ward sh-|beginnin|
|00005970| 67 2d 6f 66 2d 63 6f 6d | 6d 61 6e 64 20 6e 69 6c |g-of-com|mand nil|
|00005980| 20 74 20 32 5d 20 34 20 | 22 5c 0a 4d 6f 76 65 20 | t 2] 4 |"\.Move |
|00005990| 70 6f 69 6e 74 20 74 6f | 20 73 75 63 63 65 73 73 |point to| success|
|000059a0| 69 76 65 20 62 65 67 69 | 6e 6e 69 6e 67 73 20 6f |ive begi|nnings o|
|000059b0| 66 20 63 6f 6d 6d 61 6e | 64 73 2e 22 20 6e 69 6c |f comman|ds." nil|
|000059c0| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 73 68 |]).(defa|lias 'sh|
|000059d0| 2d 65 6e 64 2d 6f 66 2d | 63 6f 6d 6d 61 6e 64 20 |-end-of-|command |
|000059e0| 23 5b 6e 69 6c 20 22 c0 | 09 c2 c3 23 85 0b 00 c4 |#[nil ".|...#....|
|000059f0| 95 62 87 22 20 5b 72 65 | 2d 73 65 61 72 63 68 2d |.b." [re|-search-|
|00005a00| 66 6f 72 77 61 72 64 20 | 73 68 2d 65 6e 64 2d 6f |forward |sh-end-o|
|00005a10| 66 2d 63 6f 6d 6d 61 6e | 64 20 6e 69 6c 20 74 20 |f-comman|d nil t |
|00005a20| 31 5d 20 34 20 22 5c 0a | 4d 6f 76 65 20 70 6f 69 |1] 4 "\.|Move poi|
|00005a30| 6e 74 20 74 6f 20 73 75 | 63 63 65 73 73 69 76 65 |nt to su|ccessive|
|00005a40| 20 65 6e 64 73 20 6f 66 | 20 63 6f 6d 6d 61 6e 64 | ends of| command|
|00005a50| 73 2e 22 20 6e 69 6c 5d | 29 0a 28 64 65 66 61 6c |s." nil]|).(defal|
|00005a60| 69 61 73 20 27 73 68 2d | 6d 61 6e 75 61 6c 2d 65 |ias 'sh-|manual-e|
|00005a70| 6e 74 72 79 20 23 5b 28 | 61 72 67 29 20 22 8a c0 |ntry #[(|arg) "..|
|00005a80| 20 88 c1 60 c2 20 88 60 | 7b 21 29 1b c4 c5 c6 0e | ..`. .`|{!).....|
|00005a90| 07 21 c8 51 0b 85 1d 00 | c9 0b 21 5c 22 13 ca 0b |.!.Q....|..!\"...|
|00005aa0| cb 98 83 2d 00 c6 0e 07 | 21 82 2e 00 0b 0e 5c 66 |...-....|!.....\f|
|00005ab0| 5c 22 29 87 22 20 5b 73 | 68 2d 62 65 67 69 6e 6e |\")." [s|h-beginn|
|00005ac0| 69 6e 67 2d 6f 66 2d 63 | 6f 6d 6d 61 6e 64 20 73 |ing-of-c|ommand s|
|00005ad0| 68 2d 65 78 65 63 75 74 | 61 62 6c 65 20 66 6f 72 |h-execut|able for|
|00005ae0| 77 61 72 64 2d 73 65 78 | 70 20 63 6f 6d 6d 61 6e |ward-sex|p comman|
|00005af0| 64 20 72 65 61 64 2d 69 | 6e 70 75 74 20 22 4d 61 |d read-i|nput "Ma|
|00005b00| 6e 75 61 6c 20 65 6e 74 | 72 79 20 28 64 65 66 61 |nual ent|ry (defa|
|00005b10| 75 6c 74 20 22 20 73 79 | 6d 62 6f 6c 2d 6e 61 6d |ult " sy|mbol-nam|
|00005b20| 65 20 73 68 2d 73 68 65 | 6c 6c 20 22 29 3a 20 22 |e sh-she|ll "): "|
|00005b30| 20 66 69 6c 65 2d 6e 61 | 6d 65 2d 6e 6f 6e 64 69 | file-na|me-nondi|
|00005b40| 72 65 63 74 6f 72 79 20 | 6d 61 6e 75 61 6c 2d 65 |rectory |manual-e|
|00005b50| 6e 74 72 79 20 22 22 20 | 61 72 67 5d 20 34 20 22 |ntry "" |arg] 4 "|
|00005b60| 5c 0a 44 69 73 70 6c 61 | 79 20 74 68 65 20 55 6e |\.Displa|y the Un|
|00005b70| 69 78 20 6d 61 6e 75 61 | 6c 20 65 6e 74 72 79 20 |ix manua|l entry |
|00005b80| 66 6f 72 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |for the |current |
|00005b90| 63 6f 6d 6d 61 6e 64 20 | 6f 72 20 73 68 65 6c 6c |command |or shell|
|00005ba0| 2e 0a 55 6e 69 76 65 72 | 73 61 6c 20 61 72 67 75 |..Univer|sal argu|
|00005bb0| 6d 65 6e 74 20 41 52 47 | 2c 20 69 73 20 70 61 73 |ment ARG|, is pas|
|00005bc0| 73 65 64 20 74 6f 20 60 | 4d 61 6e 2d 67 65 74 70 |sed to `|Man-getp|
|00005bd0| 61 67 65 2d 69 6e 2d 62 | 61 63 6b 67 72 6f 75 6e |age-in-b|ackgroun|
|00005be0| 64 27 2e 22 20 22 50 22 | 5d 29 0a |d'." "P"|]). |
+--------+-------------------------+-------------------------+--------+--------+